1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

update device type enums

This commit is contained in:
Kyle Spearrin
2018-07-09 09:12:41 -04:00
parent 7b84a2e597
commit 48abc87e0c
4 changed files with 25 additions and 25 deletions

View File

@@ -57,7 +57,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Chrome);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.ChromeExtension);
});
it('should detect firefox', () => {
@@ -67,7 +67,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Firefox);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.FirefoxExtension);
});
it('should detect opera', () => {
@@ -82,7 +82,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Opera);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.OperaExtension);
});
it('should detect edge', () => {
@@ -92,7 +92,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Edge);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.EdgeExtension);
});
it('should detect safari', () => {
@@ -107,7 +107,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Safari);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.SafariExtension);
});
it('should detect vivaldi', () => {
@@ -117,7 +117,7 @@ describe('Browser Utils Service', () => {
});
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.Vivaldi);
expect(browserPlatformUtilsService.getDevice()).toBe(DeviceType.VivaldiExtension);
});
});
});