From b9b7cba761395f967eb8a5ab8912b98bd3326d13 Mon Sep 17 00:00:00 2001 From: Lee Yi Date: Fri, 24 May 2024 22:19:47 +0800 Subject: [PATCH] Fix naming of test cases --- scripts/src/templates/__tests__/names.test.ts | 2 +- scripts/src/templates/__tests__/template.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/src/templates/__tests__/names.test.ts b/scripts/src/templates/__tests__/names.test.ts index eaf0b6ce6..633cca501 100644 --- a/scripts/src/templates/__tests__/names.test.ts +++ b/scripts/src/templates/__tests__/names.test.ts @@ -18,5 +18,5 @@ testFunction(isSnakeCase, [ ['snake_case', true], ['arcade_2d', true], ['PascalCase', false], - ['pascalCase', false] + ['camelCase', false] ]); diff --git a/scripts/src/templates/__tests__/template.test.ts b/scripts/src/templates/__tests__/template.test.ts index 810e62e4a..28d14e2b3 100644 --- a/scripts/src/templates/__tests__/template.test.ts +++ b/scripts/src/templates/__tests__/template.test.ts @@ -61,7 +61,7 @@ describe('Test adding new module', () => { }); it('should require camel case for module names', async () => { - mockedAskQuestion.mockResolvedValueOnce('pascalCase'); + mockedAskQuestion.mockResolvedValueOnce('camelCase'); await expectCommandFailure('Module names must be in snake case. (eg. binary_tree)'); });