Skip to content

Commit

Permalink
Fix tests for empty model properties that are valid in OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
vyobukhov committed Feb 9, 2022
1 parent e3421dd commit 14b4906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openApi/v3/parser/escapeName.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { escapeName } from './escapeName';

describe('escapeName', () => {
it('should escape', () => {
expect(escapeName('')).toEqual('');
expect(escapeName('')).toEqual("''");
expect(escapeName('fooBar')).toEqual('fooBar');
expect(escapeName('Foo Bar')).toEqual(`'Foo Bar'`);
expect(escapeName('foo bar')).toEqual(`'foo bar'`);
Expand Down

0 comments on commit 14b4906

Please sign in to comment.