Skip to content

Commit fc5cbe9

Browse files
committed
fix: added linting for tests and fixed lint issues
1 parent bfc24c9 commit fc5cbe9

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ clean:
3333
rm -rf node_modules dist
3434

3535
lint:
36-
npx eslint --ext=js,ts,vue --max-warnings=0 src/
36+
npx eslint --ext=js,ts,vue --max-warnings=0 src/ test/
3737

3838
lint-fix:
39-
npx eslint --ext=js,ts,vue --fix src/
39+
npx eslint --ext=js,ts,vue --fix src/ test/

test/e2e/screenshot.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* global fixture */
2+
/* eslint jest/no-test-callback: "off" */
3+
/* eslint jest/expect-expect: "off" */
4+
15
import { Selector } from 'testcafe';
26

37
fixture(`My fixture`).page(`http://localhost:27180/#/activity/erb-main2-arch`);

test/unit/NewReleaseNotification.test.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ describe('hasNewRelease method', () => {
55
const wrapper = shallowMount(NewReleaseNotification, {
66
mocks: {
77
$aw: {
8-
getInfo() {} // Provide dummy function because it won't find vm.$aw during test
9-
}
10-
}
8+
// Provide dummy function because it won't find vm.$aw during test
9+
getInfo() {
10+
return;
11+
},
12+
},
13+
},
1114
});
1215
const vm = wrapper.vm;
1316

@@ -40,4 +43,4 @@ describe('hasNewRelease method', () => {
4043
// vm.latestVersion = vm.cleanVersionTag('v0.9.2');
4144
// expect(vm.getHasNewRelease()).toBe(true);
4245
});
43-
});
46+
});

0 commit comments

Comments
 (0)