Skip to content

Commit 9ab875e

Browse files
committed
test: add missing undefined example check @ Response
1 parent 9868804 commit 9ab875e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/swagger/definitionsGeneration/metadata.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ describe('Metadata generation', () => {
177177
const unauthResponse = method.responses[2];
178178
expect(unauthResponse.name).to.equal('401');
179179
expect(unauthResponse.description).to.equal('Unauthorized');
180+
expect(unauthResponse.examples).to.be.undefined;
180181

181182
const defaultResponse = method.responses[3];
182183
expect(defaultResponse.name).to.equal('default');

0 commit comments

Comments
 (0)