Skip to content

Commit

Permalink
a small test change
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmin2 committed Aug 26, 2024
1 parent 7123a04 commit 7b3c1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/generator/test/generator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Generator', () => {
templateParams: {
test: true,
},
compile: true,
compile: false,
});
expect(gen.templateName).toStrictEqual('testTemplate');
expect(gen.targetDir).toStrictEqual(__dirname);
Expand All @@ -50,7 +50,7 @@ describe('Generator', () => {
expect(gen.output).toStrictEqual('string');
expect(gen.forceWrite).toStrictEqual(true);
expect(gen.install).toStrictEqual(true);
expect(gen.compile).toStrictEqual(true);
expect(gen.compile).toStrictEqual(false);
expect(() => gen.templateParams.test).toThrow('Template parameter "test" has not been defined in the package.json file under generator property. Please make sure it\'s listed there before you use it in your template.');

// Mock params on templateConfig so it doesn't fail.
Expand Down

0 comments on commit 7b3c1a9

Please sign in to comment.