Skip to content

Commit b34bc1a

Browse files
committed
chore(tests): eslint fix pass
1 parent 68779bb commit b34bc1a

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

__mocks__/setup.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ const fetchMocks = {
6565
return {username: parsed.username};
6666
},
6767

68-
'/login': ({body}) => Object.assign({
69-
id: 0,
70-
groups: []
71-
}, JSON.parse(body))
68+
'/login': ({body}) => ({id: 0,
69+
groups: [], ...JSON.parse(body)})
7270
}
7371
};
7472

__tests__/packages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const packageMatch = [
4545
.map(pkg => ({type: 'application', ...pkg}))
4646
];
4747

48-
describe('Packages', () =>  {
48+
describe('Packages', () => {
4949
let core;
5050
let packages;
5151

__tests__/utils/desktop.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ import {resourceResolver} from '../../src/utils/desktop';
33

44
describe('#resourceResolver icon themes', () => {
55
let resolver;
6+
let core;
67

78
beforeAll(() => createInstance().then(
8-
(core) => (resolver = resourceResolver(core))
9+
(c) => {
10+
core = c;
11+
resolver = resourceResolver(core);
12+
}
913
));
14+
1015
afterAll(() => core.destroy());
1116

1217
test('Should work with image extensions in the icon name', () => {

__tests__/vfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const testAdapter = {...nullAdapter, readdir: (path, options) => Promise.resolve
3535
filename: 'jest.tst',
3636
path: 'null:/jest.tst',
3737
mime: 'text/plain'
38-
}]), };
38+
}])};
3939

4040
const call = (method, ...args) => VFS[method](testAdapter, testMount)(...args);
4141
const callOther = (method, ...args) => VFS[method](testAdapter, otherMount)(...args);

__tests__/window.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ describe('Window', () => {
171171
});
172172

173173
test('#_setState', () => {
174-
const toggleEvent = jest.fn(() => {});
175-
176174
win.setState('focused', true);
177175
expect(win.state.focused).toBe(true);
178176

0 commit comments

Comments
 (0)