[improvement] update eslint config (#2288)

This commit is contained in:
neverland
2018-12-14 14:24:23 +08:00
committed by GitHub
parent d2751ffdfa
commit 16e4889a92
141 changed files with 6387 additions and 7536 deletions

View File

@@ -40,15 +40,15 @@ test('camelize', () => {
test('get', () => {
expect(get({ a: 1 }, 'a')).toEqual(1);
expect(get({ a: { b: 2 }}, 'a.b')).toEqual(2);
expect(get({ a: { b: 2 }}, 'a.b.c')).toEqual('');
expect(get({ a: { b: 2 } }, 'a.b')).toEqual(2);
expect(get({ a: { b: 2 } }, 'a.b.c')).toEqual('');
});
test('isAndroid', () => {
expect(isAndroid()).toBeFalsy();
});
test('raf', async() => {
test('raf', async () => {
const spy = jest.fn();
raf(spy);