Skip to content

Commit

Permalink
test: fix failing tests that due to async support in Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Jul 29, 2019
1 parent 74f629e commit b682575
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/@vue/cli/__tests__/Generator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b682575

Please sign in to comment.