mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
Fix tests for empty model properties that are valid in OpenAPI
This commit is contained in:
parent
e3421ddcd2
commit
14b4906e3b
@ -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'`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user