Skip to content

Commit

Permalink
test(Tags): adjust test cases to fit class decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
jackey8616 committed Oct 15, 2024
1 parent 7cfb8ff commit 5d91069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/swagger/definitionsGeneration/metadata.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ describe('Metadata generation', () => {
throw new Error('Method tags not defined!');
}

expect(method.tags).to.deep.equal(['Tag1', 'Tag2', 'Tag3']);
expect(method.tags).to.deep.equal(['Tag1', 'Tag2', 'Tag3', 'MethodTest']);
});

it('should generate multi response', () => {
Expand Down Expand Up @@ -227,7 +227,7 @@ describe('Metadata generation', () => {
secondSec: ['permission:admin', 'permission:owner'],
});

expect(method.tags).to.deep.equal(['EnumTag1']);
expect(method.tags).to.deep.equal(['EnumTag1', 'MethodTest']);
});

it('should generate success response', () => {
Expand Down

0 comments on commit 5d91069

Please sign in to comment.