Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chakra-guy committed Jan 14, 2025
1 parent 456d979 commit b02ed70
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/sdk/src/Platform/PlatfformManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,12 @@ describe('PlatformManager', () => {
});

it('should return true if isNotBrowser returns false', () => {
jest.spyOn(platformManager, 'isNotBrowser').mockReturnValue(false);

jest.spyOn(PlatformManager, 'isNotBrowser').mockReturnValue(false);
expect(platformManager.isBrowser()).toBe(true);
});

it('should return false if isNotBrowser returns true', () => {
jest.spyOn(platformManager, 'isNotBrowser').mockReturnValue(true);

jest.spyOn(PlatformManager, 'isNotBrowser').mockReturnValue(true);
expect(platformManager.isBrowser()).toBe(false);
});
});
Expand Down

0 comments on commit b02ed70

Please sign in to comment.