mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-22 20:38:55 -05:00
test: fix failing tests that due to async support in Generator
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user