Skip to content

Commit

Permalink
fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Oct 12, 2023
1 parent 16b16fb commit bdf74f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/fs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/spawn-command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit bdf74f6

Please sign in to comment.