Skip to content

Commit e0e6168

Browse files
committed
Run test/setup.js before tests
1 parent f81001f commit e0e6168

File tree

7 files changed

+1
-7
lines changed

7 files changed

+1
-7
lines changed

karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = function (config) {
33
config.set({
44
browsers: ['ChromeHeadless'],
55
frameworks: ['browserify', 'mocha'],
6-
files: ['test/**/*.js'],
6+
files: ['test/setup.js', 'test/components/*/*.spec.js'],
77
reporters: ['spec'],
88
preprocessors: {
99
'test/**/*.js': ['browserify']

test/components/account/claim.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ https://www.apache.org/licenses/LICENSE-2.0. No part of Super Adventure,
99
including this file, may be copied, modified, propagated, or distributed
1010
except according to the terms contained in the LICENSE file.
1111
*/
12-
import '../../setup';
1312
import Alert from '../../../lib/components/alert.vue';
1413
import { fillForm, mockRoute, trigger } from '../../util';
1514

test/components/account/login.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ https://www.apache.org/licenses/LICENSE-2.0. No part of Super Adventure,
99
including this file, may be copied, modified, propagated, or distributed
1010
except according to the terms contained in the LICENSE file.
1111
*/
12-
import '../../setup';
1312
import Alert from '../../../lib/components/alert.vue';
1413
import mockHttp from '../../http';
1514
import { logOut, mockRouteThroughLogin, mockUser, submitLoginForm } from '../../session';

test/components/account/reset-password.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ https://www.apache.org/licenses/LICENSE-2.0. No part of Super Adventure,
99
including this file, may be copied, modified, propagated, or distributed
1010
except according to the terms contained in the LICENSE file.
1111
*/
12-
import '../../setup';
1312
import Alert from '../../../lib/components/alert.vue';
1413
import { fillForm, mockRoute, trigger } from '../../util';
1514
import { mockUser } from '../../session';

test/components/user/list.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ https://www.apache.org/licenses/LICENSE-2.0. No part of Super Adventure,
99
including this file, may be copied, modified, propagated, or distributed
1010
except according to the terms contained in the LICENSE file.
1111
*/
12-
import '../../setup';
1312
import Alert from '../../../lib/components/alert.vue';
1413
import UserList from '../../../lib/components/user/list.vue';
1514
import mockHttp from '../../http';

test/components/user/new.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ except according to the terms contained in the LICENSE file.
1111
*/
1212
import { mount } from 'avoriaz';
1313

14-
import '../../setup';
1514
import Alert from '../../../lib/components/alert.vue';
1615
import UserList from '../../../lib/components/user/list.vue';
1716
import UserNew from '../../../lib/components/user/new.vue';

test/components/user/reset-password.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ except according to the terms contained in the LICENSE file.
1111
*/
1212
import { mount } from 'avoriaz';
1313

14-
import '../../setup';
1514
import Alert from '../../../lib/components/alert.vue';
1615
import UserList from '../../../lib/components/user/list.vue';
1716
import UserResetPassword from '../../../lib/components/user/reset-password.vue';

0 commit comments

Comments
 (0)