File tree Expand file tree Collapse file tree 5 files changed +32
-14
lines changed Expand file tree Collapse file tree 5 files changed +32
-14
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ module.exports = {
36
36
"server/boot/create-admin.js" : "extended" ,
37
37
"server/initial-data/**/*" : "extended" ,
38
38
"server/models/**/*" : "extended" ,
39
- "test/client/app.spec.js" : "extended === false" ,
40
- "test/client/main.spec.js" : "extended" ,
41
39
"test/client/components/**/*" : "extended" ,
42
40
"test/server/account.test.js" : "extended" ,
43
41
} ,
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue' ;
2
- import App from '../../client/App.vue' ;
2
+ import App from '@/App.vue' ;
3
+ { { #extended} }
4
+
5
+ // Replicates main.js behavior
6
+ import 'babel-polyfill' ;
7
+ import Vue from 'vue' ;
8
+ import { sync } from 'vuex-router-sync' ;
9
+ import 'bootstrap-vue/dist/bootstrap-vue.css' ;
10
+ import BootstrapVue from 'bootstrap-vue' ;
11
+ import Icon from 'vue-awesome' ;
12
+ import router from './router.js' ;
13
+ import store from './store' ;
14
+
15
+ Vue . use ( BootstrapVue ) ;
16
+ Vue . component ( 'icon' , Icon ) ;
17
+ sync ( store , router ) ;
18
+ { { / e x t e n d e d } }
3
19
4
20
describe ( 'App.vue' , ( ) => {
5
21
const Constructor = Vue . extend ( App ) ;
6
22
23
+ { { #extended} }
24
+ it ( 'should render login view' , ( ) => {
25
+ const vm = new Constructor ( {
26
+ render : r => r ( App ) ,
27
+ router,
28
+ store,
29
+ } ) . $mount ( ) ;
30
+
31
+ return main . $nextTick ( ) . then ( ( ) => {
32
+ expect ( main . $el . querySelector ( '.login-view' ) ) . to . not . equal ( undefined ) ;
33
+ } )
34
+ } )
35
+ { { else } }
7
36
it ( 'should render correct content' , ( ) => {
8
37
const vm = new Constructor ( ) . $mount ( ) ;
9
38
return Vue . nextTick ( ) . then ( ( ) => {
10
39
expect ( vm . $el . innerHTML ) . to . equal ( 'Hello World!' ) ;
11
40
} ) ;
12
41
} ) ;
42
+ { { / e x t e n d e d } }
13
43
} ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ describe('HelloWorld.vue', () => {
7
7
it ( 'should render correct content' , ( ) => {
8
8
const vm = new Constructor ( ) . $mount ( ) ;
9
9
return Vue . nextTick ( ) . then ( ( ) => {
10
- expect ( vm . $el . innerHTML ) . to . equal ( 'Hello World! This content is restricted.' ) ;
10
+ expect ( vm . $el . innerHTML ) . to . include ( 'Hello World! This content is restricted.' ) ;
11
11
} ) ;
12
12
} ) ;
13
13
} ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { dirs } from '../gulp-tasks/config';
6
6
import { customSass } from '../gulp-tasks/compilers.js' ;
7
7
8
8
const cssBundleFile = tmp . fileSync ( ) ;
9
- const cssStream = fs . createWriteStream ( cssBundleFile . name ) ;
10
9
11
10
export default ( config ) => {
12
11
vueify . compiler . applyConfig ( {
You can’t perform that action at this time.
0 commit comments