Merge pull request #335 from QingWei-Li/unittest
Unittest
Showing
build/cooking.test.js
0 → 100644
{ | { | ||
"name": "element-ui", | "name": "element-ui", | ||
"version": "1.0.0-rc.5", | "version": "1.0.0-rc.6", | ||
"description": "A Component Library for Vue.js.", | "description": "A Component Library for Vue.js.", | ||
"main": "lib/element-ui.common.js", | "main": "lib/element-ui.common.js", | ||
"files": [ | "files": [ | ||
... | @@ -20,7 +20,9 @@ | ... | @@ -20,7 +20,9 @@ |
"pub:all": "npm run dist:all && lerna publish", | "pub:all": "npm run dist:all && lerna publish", | ||
"build:utils": "babel src/utils --out-dir lib/utils", | "build:utils": "babel src/utils --out-dir lib/utils", | ||
"clean": "rimraf lib && rimraf packages/*/lib", | "clean": "rimraf lib && rimraf packages/*/lib", | ||
"lint": "eslint src/**/*.js packages/**/*.{js,vue} build/**/*.js --quiet" | "lint": "eslint src/**/*.js test/**/*.js packages/**/*.{js,vue} build/**/*.js --quiet", | ||
"test:watch": "karma start test/unit/karma.conf.js", | |||
"test": "karma start test/unit/karma.conf.js --single-run" | |||
}, | }, | ||
"repository": { | "repository": { | ||
"type": "git", | "type": "git", | ||
... | @@ -43,6 +45,7 @@ | ... | @@ -43,6 +45,7 @@ |
"babel-plugin-syntax-jsx": "^6.8.0", | "babel-plugin-syntax-jsx": "^6.8.0", | ||
"babel-plugin-transform-vue-jsx": "^3.1.0", | "babel-plugin-transform-vue-jsx": "^3.1.0", | ||
"babel-preset-es2015": "^6.14.0", | "babel-preset-es2015": "^6.14.0", | ||
"chai": "^3.5.0", | |||
"cheerio": "^0.18.0", | "cheerio": "^0.18.0", | ||
"cooking": "^1.1.0", | "cooking": "^1.1.0", | ||
"cooking-lint": "^0.1.3", | "cooking-lint": "^0.1.3", | ||
... | @@ -57,24 +60,39 @@ | ... | @@ -57,24 +60,39 @@ |
"highlight.js": "^9.3.0", | "highlight.js": "^9.3.0", | ||
"html-loader": "^0.4.3", | "html-loader": "^0.4.3", | ||
"html-webpack-plugin": "^2.22.0", | "html-webpack-plugin": "^2.22.0", | ||
"inject-loader": "^3.0.0-beta2", | |||
"isparta-loader": "^2.0.0", | |||
"json-loader": "^0.5.4", | "json-loader": "^0.5.4", | ||
"json-templater": "^1.0.4", | "json-templater": "^1.0.4", | ||
"karma": "^1.3.0", | |||
"karma-coverage": "^1.1.1", | |||
"karma-mocha": "^1.2.0", | |||
"karma-phantomjs-launcher": "^1.0.2", | |||
"karma-sinon-chai": "^1.2.4", | |||
"karma-sourcemap-loader": "^0.3.7", | |||
"karma-spec-reporter": "0.0.26", | |||
"karma-webpack": "^1.8.0", | |||
"lerna": "2.0.0-beta.18", | "lerna": "2.0.0-beta.18", | ||
"lolex": "^1.5.1", | |||
"markdown-it": "^6.1.1", | "markdown-it": "^6.1.1", | ||
"markdown-it-container": "^2.0.0", | "markdown-it-container": "^2.0.0", | ||
"mocha": "^3.1.1", | |||
"object-assign": "^4.1.0", | "object-assign": "^4.1.0", | ||
"phantomjs-prebuilt": "^2.1.13", | |||
"postcss": "^5.1.2", | "postcss": "^5.1.2", | ||
"postcss-loader": "^0.11.1", | "postcss-loader": "^0.11.1", | ||
"postcss-salad": "^1.0.5", | "postcss-salad": "^1.0.5", | ||
"rimraf": "^2.5.4", | "rimraf": "^2.5.4", | ||
"sinon": "^1.17.6", | |||
"sinon-chai": "^2.8.0", | |||
"style-loader": "^0.13.1", | "style-loader": "^0.13.1", | ||
"theaterjs": "^3.0.0", | "theaterjs": "^3.0.0", | ||
"uppercamelcase": "^1.1.0", | "uppercamelcase": "^1.1.0", | ||
"url-loader": "^0.5.7", | "url-loader": "^0.5.7", | ||
"vue": "^2.0.1", | "vue": "^2.0.2", | ||
"vue-loader": "^9.5.1", | "vue-loader": "^9.5.1", | ||
"vue-markdown-loader": "^0.5.1", | "vue-markdown-loader": "^0.5.1", | ||
"vue-popup": "^0.2.6", | "vue-popup": "^0.2.8", | ||
"vue-router": "^2.0.0", | "vue-router": "^2.0.0", | ||
"webpack": "^1.13.2", | "webpack": "^1.13.2", | ||
"webpack-dev-server": "^1.15.1", | "webpack-dev-server": "^1.15.1", | ||
... | ... |
packages/icon/src/icon.vue
0 → 100644
test/unit/.eslintrc
0 → 100644
test/unit/index.js
0 → 100644
test/unit/karma.conf.js
0 → 100644
test/unit/util.js
0 → 100644
Please register or sign in to comment