Skip to content

Commit

Permalink
chore: apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx committed Aug 6, 2024
1 parent 0b7bda4 commit 538b0a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ export const messages = {
LightningInterfaceBundle: 'A Lightning Interface Bundle',
LightningTest: 'A Lightning Test',
RawOutput: 'target dir = %s\n%s',
templateTypeNotFound: 'The template type does not exist',
};
6 changes: 6 additions & 0 deletions test/service/templateService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,12 @@ describe('TemplateService', () => {
}
});

it('should return an error if the generator does not exist', () => {
chai
.expect(() => importGenerator(20 as TemplateType))
.to.throw(Error, nls.localize('templateTypeNotFound'));
});

it('should create AnalyticsTemplate', async () => {
await remove(path.join('testsoutput', 'libraryCreate', 'waveTemplates'));
const templateService = TemplateService.getInstance();
Expand Down

0 comments on commit 538b0a3

Please sign in to comment.