Skip to content

Commit 4c4c537

Browse files
author
Yucong Jin
committed
update test
1 parent 6b3be34 commit 4c4c537

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/app.test.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ const helpers = require('yeoman-test');
22
const assert = require('yeoman-assert');
33
const path = require('path');
44

5-
describe('generator-react-component-dev-kit', () => {
5+
describe('default', () => {
66
it('should create expected files', () => {
77
return helpers.run(path.join(__dirname, '../generators/app'))
8-
.withPrompts({ name: 'test-component' })
8+
.withPrompts({
9+
name: 'test-component',
10+
path: './' ,
11+
componentType: '0',
12+
})
913
.then((dir) => {
1014
assert.file([
1115
'test-component/webpack.config.common.js',
@@ -16,6 +20,6 @@ describe('generator-react-component-dev-kit', () => {
1620
'test-component/src/index.ts',
1721
'test-component/package.json',
1822
]);
19-
});
23+
})
2024
});
2125
});

0 commit comments

Comments
 (0)