Skip to content

Commit 25618aa

Browse files
committed
follow common pattern
1 parent 2228930 commit 25618aa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/utils/trackEvent.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ const trackEvent = (event: any) => {
3838
method: 'POST',
3939
body: payload,
4040
})
41-
.then(() => {
42-
return true;
43-
})
44-
.catch(() => {
45-
return;
46-
});
41+
.then(() => {
42+
return true;
43+
})
44+
.catch(() => {
45+
return true;
46+
});
4747
};
4848

4949
export { trackEvent, registerScriptLoading };

test/load.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const SCRIPT_URL = 'script[src^="https://js.verygoodvault.com/vgs-collect/"]';
88
global.fetch = jest.fn(() =>
99
Promise.resolve({
1010
json: () => Promise.resolve(true),
11-
}),
11+
})
1212
) as jest.Mock;
1313

1414
describe('loadVGSCollect', () => {

0 commit comments

Comments
 (0)