Skip to content

Commit

Permalink
fix(swagger): test
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin committed Sep 29, 2024
1 parent ed29679 commit 2366c94
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/swagger/test/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,25 @@ describe('test @ApiProperty', () => {
}

const explorer = new CustomSwaggerExplorer();
expect(explorer.parse(Dto)).toMatchSnapshot();
const result = explorer.parse(Dto)
// expect(explorer.parse(Dto)).toMatchSnapshot();
expect(result).toEqual({
properties: {
animal: {
isArray: true,
items: {
enum: [
0,
1,
2,
],
type: 'number',
},
type: 'array',
},
},
type: 'object',
})
})
});

Expand Down

0 comments on commit 2366c94

Please sign in to comment.