We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2228930 commit 25618aaCopy full SHA for 25618aa
src/utils/trackEvent.ts
@@ -38,12 +38,12 @@ const trackEvent = (event: any) => {
38
method: 'POST',
39
body: payload,
40
})
41
- .then(() => {
42
- return true;
43
- })
44
- .catch(() => {
45
- return;
46
- });
+ .then(() => {
+ return true;
+ })
+ .catch(() => {
+ });
47
};
48
49
export { trackEvent, registerScriptLoading };
test/load.test.ts
@@ -8,7 +8,7 @@ const SCRIPT_URL = 'script[src^="https://js.verygoodvault.com/vgs-collect/"]';
8
global.fetch = jest.fn(() =>
9
Promise.resolve({
10
json: () => Promise.resolve(true),
11
- }),
12
) as jest.Mock;
13
14
describe('loadVGSCollect', () => {
0 commit comments