Skip to content

Commit

Permalink
fix: added linting for tests and fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Sep 14, 2020
1 parent bfc24c9 commit fc5cbe9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -33,7 +33,7 @@ clean:
rm -rf node_modules dist

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

lint-fix:
npx eslint --ext=js,ts,vue --fix src/
npx eslint --ext=js,ts,vue --fix src/ test/
4 changes: 4 additions & 0 deletions test/e2e/screenshot.test.js
@@ -1,3 +1,7 @@
/* global fixture */
/* eslint jest/no-test-callback: "off" */
/* eslint jest/expect-expect: "off" */

import { Selector } from 'testcafe';

fixture(`My fixture`).page(`http://localhost:27180/#/activity/erb-main2-arch`);
Expand Down
11 changes: 7 additions & 4 deletions test/unit/NewReleaseNotification.test.js
Expand Up @@ -5,9 +5,12 @@ describe('hasNewRelease method', () => {
const wrapper = shallowMount(NewReleaseNotification, {
mocks: {
$aw: {
getInfo() {} // Provide dummy function because it won't find vm.$aw during test
}
}
// Provide dummy function because it won't find vm.$aw during test
getInfo() {
return;
},
},
},
});
const vm = wrapper.vm;

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

0 comments on commit fc5cbe9

Please sign in to comment.