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

adobe / reactor-extension-cloud-connector-edge / 14345275214

08 Apr 2025 11:06PM UTC coverage: 78.987% (-2.1%) from 81.086%
14345275214

push

github

dompuiu
1.2.0

180 of 251 branches covered (71.71%)

Branch coverage included in aggregate %.

350 of 420 relevant lines covered (83.33%)

65.99 hits per line

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

63.64
/src/view/__tests_helpers__/createExtensionBridge.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
Unless required by applicable law or agreed to in writing, software distributed under
7
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
8
OF ANY KIND, either express or implied. See the License for the specific language
9
governing permissions and limitations under the License.
10
*/
11

12
export default () => {
13
  let registeredOptions;
14

15
  return {
14✔
16
    register(options) {
17
      registeredOptions = options;
14✔
18
    },
19

20
    async init(initInfo) {
21
      initInfo = {
14✔
22
        company: { orgId: 'ORG_ID' },
23
        tokens: { imsAccess: 'IMS_ACCESS' },
24
        propertySettings: { id: 'PROPERTY_ID' },
25
        ...initInfo
26
      };
27

28
      await registeredOptions.init.apply(this, [initInfo]);
14✔
29
    },
30
    async validate(...args) {
31
      let validationResult;
32
      validationResult = await registeredOptions.validate.apply(this, args);
4✔
33

34
      return validationResult;
4✔
35
    },
36

37
    getSettings(...args) {
38
      return registeredOptions.getSettings.apply(this, args);
11✔
39
    },
40

41
    openCodeEditor({ code }) {
42
      return Promise.resolve(`${code} + modified code`);
×
43
    },
44

45
    openRegexTester() {},
46

47
    openDataElementSelector({ tokenize }) {
48
      return Promise.resolve(
×
49
        tokenize ? '%data element name%' : 'data element name'
×
50
      );
51
    }
52
  };
53
};
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