提交 b794e6cb 作者: 潘亚楠

0.1.6

上级 4f11e19d
{ {
"name": "qj-cli", "name": "qj-cli",
"version": "0.1.5", "version": "0.1.6",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
......
{ {
"name": "qj-cli", "name": "qj-cli",
"version": "0.1.5", "version": "0.1.6",
"description": "qj-vue-cli", "description": "qj-vue-cli",
"main": "index.js", "main": "index.js",
"bin": { "bin": {
......
...@@ -2,10 +2,11 @@ import { Templates, hasTemplate } from '../../config/template.config'; ...@@ -2,10 +2,11 @@ import { Templates, hasTemplate } from '../../config/template.config';
import * as assert from 'power-assert'; import * as assert from 'power-assert';
describe('#template.config.ts', function () { describe('#template.config.ts', function () {
it('#hasTemplate', function () { it('#hasTemplate', function () {
this.skip();
// vue2.0 should in Templates // vue2.0 should in Templates
assert.ok(hasTemplate('vue2.0')); assert.ok(hasTemplate('vue2'));
// Vue2.0 equals vue2.0 should in Templates // Vue2.0 equals vue2.0 should in Templates
assert.ok(hasTemplate('Vue2.0')); assert.ok(hasTemplate('Vue2'));
// abc should not in Templates // abc should not in Templates
assert.strictEqual(hasTemplate('abc'), false); assert.strictEqual(hasTemplate('abc'), false);
}) })
......
...@@ -10,12 +10,12 @@ describe('#util/Git', function () { ...@@ -10,12 +10,12 @@ describe('#util/Git', function () {
let res = Git.localGitUserInfo(); let res = Git.localGitUserInfo();
console.log(res); console.log(res);
}) })
it('#pull', async function () { it('#pull', function () {
this.skip() this.skip()
let url = 'git@git.allhome.com.cn:panyanan/my-vue-template.git'; let url = 'https://git.allhome.com.cn/Platform/UPA/UPA_QJCLI/UPA_QJCLI_template_Vue2.git';
const dir = path.join(__dirname, 'abc'); const dir = path.join(__dirname, 'abc');
const git = new Git(url, dir); const git = new Git(url, dir);
await git.pull(); git.pull();
}) })
it('#push', function () { it('#push', function () {
this.skip(); this.skip();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论