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

adobe / reactor-extension-core-edge / 6539196853

16 Oct 2023 08:58PM UTC coverage: 65.005% (-0.5%) from 65.491%
6539196853

push

github

dompuiu
1.2.1

218 of 377 branches covered (0.0%)

Branch coverage included in aggregate %.

395 of 566 relevant lines covered (69.79%)

28.18 hits per line

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

0.0
/src/view/dataElements/path/api/loadExtensions.js
1
/*
2
Copyright 2021 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 fetch, { getFetchSettings } from '../../../utils/fetch';
14

15
let data;
16

17
export default async () => {
18
  if (data) {
×
19
    return data;
×
20
  }
21

22
  const { propertyId } = getFetchSettings();
×
23

24
  const url = `/properties/${propertyId}/extensions?page[size]=999&page[number]=1`;
×
25

26
  try {
×
27
    const d = await fetch(url);
×
28
    data = d;
×
29
    return d;
×
30
  } catch (e) {
31
    if (e instanceof TypeError) {
×
32
      throw new Error(`${e.message} when loading ${url}`);
×
33
    } else {
34
      throw e;
×
35
    }
36
  }
37
};
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

© 2025 Coveralls, Inc