1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

import ts through node_modules alias

This commit is contained in:
Kyle Spearrin
2018-01-09 14:26:20 -05:00
parent e165b5cc70
commit f51bebd99a
49 changed files with 515 additions and 322 deletions

View File

@@ -1,5 +1,6 @@
import BrowserPlatformUtilsService from './browserPlatformUtils.service';
import { Enums } from '@bitwarden/jslib';
import { DeviceType } from 'jslib/enums';
describe('Browser Utils Service', () => {
describe('getDomain', () => {
@@ -48,7 +49,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService();
expect(browserPlatformUtilsService.getDevice()).toBe(Enums.DeviceType.Chrome);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Chrome);
});
it('should detect firefox', () => {
@@ -58,7 +59,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService();
expect(browserPlatformUtilsService.getDevice()).toBe(Enums.DeviceType.Firefox);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Firefox);
});
it('should detect opera', () => {
@@ -68,7 +69,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService();
expect(browserPlatformUtilsService.getDevice()).toBe(Enums.DeviceType.Opera);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Opera);
});
it('should detect edge', () => {
@@ -78,7 +79,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService();
expect(browserPlatformUtilsService.getDevice()).toBe(Enums.DeviceType.Edge);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Edge);
});
});
});