This repository has been archived by the owner on Feb 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ improvement(test): more easy unit testing
- Loading branch information
Showing
3 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Vue from 'vue' | ||
import plugin from '../../src/index' | ||
import 'babel-polyfill' // promise and etc ... | ||
|
||
Vue.use(plugin) | ||
|
||
window.Vue = Vue |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import Vue from 'vue' | ||
import plugin from '../../src/index' | ||
|
||
// import all helpers | ||
const helpersContext = require.context('../helpers', true) | ||
helpersContext.keys().forEach(helpersContext) | ||
|
||
// require all test files | ||
const testsContext = require.context('./', true) | ||
const testsContext = require.context('./', true, /\.test/) | ||
testsContext.keys().forEach(testsContext) | ||
|
||
Vue.use(plugin) |