mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
🐛 Fix eslint
This commit is contained in:
parent
d299eeae3f
commit
94fbf3308b
@ -1,4 +1,3 @@
|
||||
/* eslint-disable global-require */
|
||||
import pkg from '../package.json';
|
||||
|
||||
const testDist = process.env.LIB_DIR === 'dist';
|
||||
@ -7,7 +6,7 @@ describe('antd dist files', () => {
|
||||
// https://github.com/ant-design/ant-design/issues/1638
|
||||
// https://github.com/ant-design/ant-design/issues/1968
|
||||
it('exports modules correctly', () => {
|
||||
const antd = testDist ? require('../dist/antd') : require('../components');
|
||||
const antd = testDist ? require('../dist/antd') : require('../components'); // eslint-disable-line
|
||||
expect(Object.keys(antd)).toMatchSnapshot();
|
||||
});
|
||||
|
||||
@ -15,7 +14,7 @@ describe('antd dist files', () => {
|
||||
// https://github.com/ant-design/ant-design/issues/1804
|
||||
if (testDist) {
|
||||
it('should have antd.version', () => {
|
||||
const antd = require('../dist/antd');
|
||||
const antd = require('../dist/antd'); // eslint-disable-line
|
||||
expect(antd.version).toBe(pkg.version);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user