fix safari test

This commit is contained in:
Kyle Spearrin 2018-04-14 10:16:05 -04:00
parent d0d709247d
commit c07d2739dd
1 changed files with 5 additions and 0 deletions

View File

@ -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);
});