From bdf74f6f1f068774790a52cf37c292ac1ebecd6e Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Wed, 11 Oct 2023 23:46:45 -0300 Subject: [PATCH] fix tests. --- test/fs.test.ts | 4 ++-- test/spawn-command.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/fs.test.ts b/test/fs.test.ts index f2950875..3954af6d 100644 --- a/test/fs.test.ts +++ b/test/fs.test.ts @@ -21,12 +21,12 @@ describe('generators.Base (actions/fs)', () => { before(function () { this.timeout(10_000); - this.gen = new Base({ env: createEnv() }); + this.gen = new Base({ env: createEnv(), resolved: 'unknown' }); }); beforeEach(function () { returns = {}; - this.base = new BaseGenerator({ namespace: 'foo', help: true }); + this.base = new BaseGenerator({ namespace: 'foo', help: true, resolved: 'unknown' }); esmocha.spyOn(this.base, 'config', 'get').mockReturnValue({ getAll() { return configGetAll; diff --git a/test/spawn-command.test.ts b/test/spawn-command.test.ts index 8e14f53f..1b2aaec7 100644 --- a/test/spawn-command.test.ts +++ b/test/spawn-command.test.ts @@ -8,7 +8,7 @@ describe('generators.Base (actions/spawn-command)', () => { let spawn; beforeEach(async function () { - spawn = new Generator({ help: true, namespace: 'foo' }); + spawn = new Generator({ help: true, namespace: 'foo', resolved: 'unknown' }); cwd = Math.random().toString(36).slice(7); spawn.destinationRoot = fn().mockReturnValue(cwd); });