From e41f268381bded197619be9d1ccf386a0da5927d Mon Sep 17 00:00:00 2001 From: Dennis Kribl Date: Wed, 5 Jan 2022 11:32:33 +0100 Subject: [PATCH] FEATURE: remove baidu browser support baidu is deprecated since 2019 --- src/index.js | 5 ++--- src/index.spec.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 091ecc2..46ae7c8 100644 --- a/src/index.js +++ b/src/index.js @@ -20,8 +20,7 @@ module.exports = [ 'last 2 UCAndroid versions', // Others 'last 2 Electron versions', - 'last 2 Samsung versions', - 'last 2 Baidu versions' + 'last 2 Samsung versions' ]; -// Not supported: BlackBerry, OperaMini, Android, ExplorerMobile, Explorer, kaios, OperaMobile +// Not supported: BlackBerry, OperaMini, Android, ExplorerMobile, Explorer, kaios, OperaMobile, Baidu diff --git a/src/index.spec.js b/src/index.spec.js index 048ef4a..08f7e2e 100644 --- a/src/index.spec.js +++ b/src/index.spec.js @@ -56,7 +56,6 @@ describe('browserslist-config', () => { it('should contain special browsers', () => { expect(clearedConfig.indexOf('Electron')).toBe(11); expect(clearedConfig.indexOf('Samsung')).toBe(12); - expect(clearedConfig.indexOf('Baidu')).toBe(13); }); it('should NOT contain unnecessary browsers', () => { @@ -66,5 +65,6 @@ describe('browserslist-config', () => { expect(clearedConfig.indexOf('Explorer')).toBe(-1); expect(clearedConfig.indexOf('kaios')).toBe(-1); expect(clearedConfig.indexOf('OperaMobile')).toBe(-1); + expect(clearedConfig.indexOf('Baidu')).toBe(-1); }); });