File tree Expand file tree Collapse file tree 5 files changed +41
-4
lines changed Expand file tree Collapse file tree 5 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 5
5
"globals": {
6
6
"define": true,
7
7
"Vue": true,
8
- "Firebase": true
8
+ "Firebase": true,
9
+ "describe": true,
10
+ "it": true,
11
+ "expect": true
9
12
},
10
13
"plugins": [
11
14
"html"
Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
node_modules
3
+ coverage
Original file line number Diff line number Diff line change
1
+ module . exports = function ( config ) {
2
+ config . set ( {
3
+ frameworks : [ 'jasmine' ] ,
4
+ browsers : [ 'PhantomJS' ] ,
5
+ reporters : [ 'progress' , 'coverage' ] ,
6
+ files : [
7
+ 'node_modules/vue/dist/vue.js' ,
8
+ 'src/*.js' ,
9
+ 'tests/*.js'
10
+ ] ,
11
+ preprocessors : {
12
+ 'src/*.js' : 'coverage'
13
+ } ,
14
+ coverageReporter : {
15
+ reporters : [
16
+ { type : 'html' , subdir : '.' } ,
17
+ { type : 'text-summary' }
18
+ ]
19
+ }
20
+ } )
21
+ }
Original file line number Diff line number Diff line change 4
4
"description" : " Firebase bindings for Vue.js" ,
5
5
"main" : " src/vuefire.js" ,
6
6
"scripts" : {
7
- "lint" : " eslint src tests examples --ext js,html " ,
8
- "test" : " echo \" Error: no test specified \" && exit 1 "
7
+ "lint" : " eslint --ext=js,html src tests examples karma.conf.js " ,
8
+ "test" : " npm run lint && karma start karma.conf.js --single-run "
9
9
},
10
10
"repository" : {
11
11
"type" : " git" ,
25
25
"homepage" : " https://github.com/firebase/vuefire#readme" ,
26
26
"devDependencies" : {
27
27
"eslint" : " ^1.10.3" ,
28
- "eslint-plugin-html" : " ^1.1.0"
28
+ "eslint-plugin-html" : " ^1.1.0" ,
29
+ "jasmine-core" : " ^2.4.1" ,
30
+ "karma" : " ^0.13.19" ,
31
+ "karma-coverage" : " ^0.5.3" ,
32
+ "karma-jasmine" : " ^0.3.6" ,
33
+ "karma-phantomjs-launcher" : " ^0.2.3" ,
34
+ "phantomjs" : " ^1.9.19" ,
35
+ "vue" : " ^1.0.13"
29
36
}
30
37
}
Original file line number Diff line number Diff line change
1
+ describe ( 'VueFire' , function ( ) {
2
+ it ( 'should pass' , function ( ) {
3
+ expect ( 1 ) . toBe ( 1 )
4
+ } )
5
+ } )
You can’t perform that action at this time.
0 commit comments