Skip to content

Commit

Permalink
FEATURE: remove baidu browser support
Browse files Browse the repository at this point in the history
baidu is deprecated since 2019
  • Loading branch information
Dennis Kribl committed Jan 5, 2022
1 parent 45b7ebf commit e41f268
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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);
});
});

0 comments on commit e41f268

Please sign in to comment.