mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
lint change revert, failed unit test fix
This commit is contained in:
parent
7a458ba356
commit
7f49ceead2
@ -24,8 +24,7 @@ describe('Browser Utils Service', () => {
|
|||||||
it('should detect chrome', () => {
|
it('should detect chrome', () => {
|
||||||
Object.defineProperty(navigator, 'userAgent', {
|
Object.defineProperty(navigator, 'userAgent', {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' +
|
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36',
|
||||||
'Chrome / 62.0.3202.94 Safari/ 537.36',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null);
|
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null);
|
||||||
@ -45,8 +44,7 @@ describe('Browser Utils Service', () => {
|
|||||||
it('should detect opera', () => {
|
it('should detect opera', () => {
|
||||||
Object.defineProperty(navigator, 'userAgent', {
|
Object.defineProperty(navigator, 'userAgent', {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' +
|
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3175.3 Safari/537.36 OPR/49.0.2695.0 (Edition developer)',
|
||||||
'Chrome / 62.0.3175.3 Safari/ 537.36 OPR / 49.0.2695.0(Edition developer)',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.defineProperty(window, 'opr', {
|
Object.defineProperty(window, 'opr', {
|
||||||
@ -61,8 +59,7 @@ describe('Browser Utils Service', () => {
|
|||||||
it('should detect edge', () => {
|
it('should detect edge', () => {
|
||||||
Object.defineProperty(navigator, 'userAgent', {
|
Object.defineProperty(navigator, 'userAgent', {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; ServiceUI 9) AppleWebKit/537.36 (KHTML, like Gecko)' +
|
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; ServiceUI 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063',
|
||||||
'Chrome / 52.0.2743.116 Safari/ 537.36 Edge / 15.15063',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null);
|
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null);
|
||||||
@ -72,8 +69,7 @@ describe('Browser Utils Service', () => {
|
|||||||
it('should detect safari', () => {
|
it('should detect safari', () => {
|
||||||
Object.defineProperty(navigator, 'userAgent', {
|
Object.defineProperty(navigator, 'userAgent', {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
value: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) ' +
|
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',
|
||||||
'Version / 10.0.3 Safari / 602.4.8',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.defineProperty(window, 'safariAppExtension', {
|
Object.defineProperty(window, 'safariAppExtension', {
|
||||||
@ -93,8 +89,7 @@ describe('Browser Utils Service', () => {
|
|||||||
it('should detect vivaldi', () => {
|
it('should detect vivaldi', () => {
|
||||||
Object.defineProperty(navigator, 'userAgent', {
|
Object.defineProperty(navigator, 'userAgent', {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' +
|
value: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.97 Safari/537.36 Vivaldi/1.94.1008.40',
|
||||||
'Chrome / 62.0.3202.97 Safari/ 537.36 Vivaldi / 1.94.1008.40',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null);
|
const browserPlatformUtilsService = new BrowserPlatformUtilsService(null, null);
|
||||||
|
Loading…
Reference in New Issue
Block a user