mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-26 17:08:33 +01:00
fix safari test
This commit is contained in:
parent
d0d709247d
commit
c07d2739dd
@ -88,6 +88,11 @@ describe('Browser Utils Service', () => {
|
||||
value: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8'
|
||||
});
|
||||
|
||||
Object.defineProperty(window, 'safari', {
|
||||
configurable: true,
|
||||
value: {}
|
||||
});
|
||||
|
||||
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null);
|
||||
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Safari);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user