Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jack committed Jan 4, 2020
1 parent 67ff09b commit 6df1917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/option.enumsAsPascalCase.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { executeApiTest, occurrences } from './testUtils';
describe('enumsAsPascalCase', () => {
it('should make enum values PascalCase', async () => {
const generated = await executeApiTest('enumsAsPascalCase.ts', { enumsAsPascalCase: true });
expect(generated).toContain("SysAdmin = 'SYS_ADMIN'");
expect(generated).toContain(`SysAdmin = 'SYS_ADMIN'`);
});

it('should not make enum values PascalCase when disabled', async () => {
const generated = await executeApiTest('enumsAsPascalCase.ts', { enumsAsPascalCase: false });
expect(generated).toContain("SYS_ADMIN = 'SYS_ADMIN'");
expect(generated).toContain(`SYS_ADMIN = 'SYS_ADMIN'`);
});
});

0 comments on commit 6df1917

Please sign in to comment.