test: fix failing tests that due to async support in Generator

This commit is contained in:
Haoqun Jiang
2019-07-29 16:56:04 +08:00
parent 74f629ea3f
commit b6825756e9
@@ -456,13 +456,16 @@ test('api: onCreateComplete', async () => {
],
afterInvokeCbs: cbs
})
await generator.generate()
expect(cbs).toContain(fn)
})
test('api: afterInvoke', () => {
test('api: afterInvoke', async () => {
const fn = () => {}
const cbs = []
new Generator('/', {
const generator = new Generator('/', {
plugins: [
{
id: 'test',