Commit 32a4fb6
Fix unit testing (Airbnb style lint) (vuejs-templates#351)
* Improve unit testing referring the official guide
Unit Testing - vue.js
https://vuejs.org/v2/guide/unit-testing.html
* Allow optionalDependencies
https://google.com/#q=import%2Fno-extraneous-dependencies 'function-bind' should be listed in the project's dependencies, not devDependencies
/project-path/test/unit/index.js
Function.prototype.bind = require('function-bind');
^1 parent 763f644 commit 32a4fb6
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
0 commit comments