🐛 Fix eslint

This commit is contained in:
afc163 2018-11-30 19:34:52 +08:00
parent d299eeae3f
commit 94fbf3308b
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48

View File

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