Skip to content

Commit fd9f665

Browse files
committed
update test suite
1 parent 4bab9c6 commit fd9f665

File tree

5 files changed

+309
-241
lines changed

5 files changed

+309
-241
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,26 @@
3333
"lint": "cross-env eslint --ext .js,.vue src spec"
3434
},
3535
"devDependencies": {
36+
"avoriaz": "^2.4.2",
3637
"babel-core": "^6.25.0",
3738
"babel-loader": "^7.1.1",
3839
"babel-plugin-istanbul": "^4.1.4",
3940
"babel-preset-latest": "^6.24.1",
41+
"chai": "^4.0.2",
4042
"cross-env": "^5.0.1",
4143
"eslint": "^4.2.0",
4244
"eslint-plugin-vue": "beta",
43-
"jasmine": "^2.6.0",
4445
"karma": "^1.7.0",
4546
"karma-coverage": "^1.1.1",
46-
"karma-jasmine": "^1.1.0",
47+
"karma-mocha": "^1.3.0",
4748
"karma-phantomjs-launcher": "^1.0.4",
49+
"karma-sinon-chai": "^1.3.1",
4850
"karma-sourcemap-loader": "^0.3.7",
4951
"karma-spec-reporter": "^0.0.31",
5052
"karma-webpack": "^2.0.4",
53+
"mocha": "^3.4.2",
54+
"sinon": "^2.3.6",
55+
"sinon-chai": "^2.11.0",
5156
"vue": "^2.3.4",
5257
"vue-loader": "^13.0.0",
5358
"vue-template-compiler": "^2.3.4",

src/vue-numeric.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
v-model="amount"
1111
v-if="!readOnly"
1212
>
13-
<span v-else ref="readOnly"> {{ amount }} </span>
13+
<span v-else ref="readOnly">{{ amount }}</span>
1414
</template>
1515

1616
<script>

test/karma.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var path = require('path')
55
module.exports = config => {
66
config.set({
77
browsers: ['PhantomJS'],
8-
frameworks: ['jasmine'],
8+
frameworks: ['mocha', 'sinon-chai'],
99
reporters: ['spec', 'coverage'],
1010
files: ['specs/*.spec.js'],
1111
preprocessors: {

0 commit comments

Comments
 (0)