Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit a212f02

Browse files
Hubert KosterHubert Koster
authored andcommitted
chore: adding some test coverage
1 parent 6d75bfc commit a212f02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/__tests__/utils.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ describe('Get an object with currency data', () => {
2828
});
2929

3030
describe('Get App ID', () => {
31+
it('By default it should return vercel staging ap id if hostname is not listed', () => {
32+
window.location.hostname = 'asdfasdf';
33+
const appId = getAppId();
34+
expect(appId).toBe('35073');
35+
});
3136
it("Should return 35074 when it's called in localhost environment", () => {
3237
window.location.hostname = 'localhost';
3338
const appId = getAppId();

0 commit comments

Comments
 (0)