• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

adobe / reactor-extension-core-edge / 4919408640

pending completion
4919408640

push

github

GitHub
Merge pull request #6 from adobe/path_changes

218 of 375 branches covered (58.13%)

Branch coverage included in aggregate %.

124 of 124 new or added lines in 8 files covered. (100.0%)

395 of 561 relevant lines covered (70.41%)

28.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/src/view/dataElements/path/form/getSettings.js
1
/*
2
Copyright 2020 Adobe. All rights reserved.
3
This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
you may not use this file except in compliance with the License. You may obtain a copy
5
of the License at http://www.apache.org/licenses/LICENSE-2.0
6

7
Unless required by applicable law or agreed to in writing, software distributed under
8
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
OF ANY KIND, either express or implied. See the License for the specific language
10
governing permissions and limitations under the License.
11
*/
12

13
import actionSources from '../helpers/actionSources';
14
import loadExtensions from '../api/loadExtensions';
15

16
const { getActionSourceId } = actionSources;
1✔
17

18
export default async ({ path, action, extension }) => {
19
  action = getActionSourceId(action);
1✔
20
  const extensions = await loadExtensions();
1✔
21

22
  const currentExtension = (extensions?.data || []).filter(
1✔
23
    (x) => x.attributes.display_name === extension
×
24
  )[0];
25

26
  // eslint-disable-next-line default-case
27
  switch (action) {
1!
28
    case 'request':
29
      path = 'arc.request';
×
30
      break;
×
31
    case 'xdm':
32
      path = `arc.event.xdm${path ? `.${path}` : ''}`;
×
33
      break;
×
34
    case 'data':
35
      path = `arc.event.data${path ? `.${path}` : ''}`;
×
36
      break;
×
37
    case 'event':
38
      path = `arc.event${path ? `.${path}` : ''}`;
×
39
      break;
×
40
    case 'stash':
41
      path = `arc.ruleStash${
×
42
        currentExtension ? `.${currentExtension.attributes.name}` : ``
×
43
      }${path && currentExtension ? `.${path}` : ''}`;
×
44
  }
45

46
  const settings = { path };
1✔
47
  return settings;
1✔
48
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc