[Improvement] optimize area performance (#457)

This commit is contained in:
neverland
2017-12-20 17:39:51 +08:00
committed by GitHub
parent df67b005ce
commit 021d30efb1
6 changed files with 98 additions and 122 deletions
+3 -1
View File
@@ -13,7 +13,9 @@ inquirer.prompt([{
name: 'select',
message: '请选择要运行的测试文件:',
choices: files
}], (result) => {
}]).then(result => {
const file = result.select.replace('.spec.js', '');
shell.exec('karma start test/unit/karma.conf.js --color alway --file ' + file);
}).catch(error => {
console.log(error);
});
+3 -3
View File
@@ -64,7 +64,7 @@ describe('Area', () => {
}
});
expect(wrapper.vm.areaColumns.length).to.equal(0);
expect(wrapper.vm.columns.length).to.equal(0);
});
it('create an area with columnsNum equal 2', () => {
@@ -75,7 +75,7 @@ describe('Area', () => {
}
});
expect(wrapper.vm.areaColumns.length).to.equal(2);
expect(wrapper.vm.columns.length).to.equal(2);
});
it('create an area with columnsNum equal 1', () => {
@@ -86,7 +86,7 @@ describe('Area', () => {
}
});
expect(wrapper.vm.areaColumns.length).to.equal(1);
expect(wrapper.vm.columns.length).to.equal(1);
});
it('create an area and click cancel', done => {