Skip to content

Commit

Permalink
test: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chappelo committed Nov 2, 2024
1 parent 29ae90d commit 33e951a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/swagger/schemaDetails3.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4669,6 +4669,12 @@ describe('Definition generation for OpenAPI 3.0.0', () => {
type: 'object',
});
});

it('should generate schema with namespace type casted object', () => {
const response = specDefault.spec.paths['/GetTest/NamespaceWithTypeCastedObject']?.get?.responses;

expect(response).to.have.all.keys('200');
});
});

describe('@Res responses', () => {
Expand Down

0 comments on commit 33e951a

Please sign in to comment.