Skip to content

Commit

Permalink
test: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Apr 10, 2023
1 parent 86372df commit c5fe22d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/type-utils/tests/TypeOrValueSpecifier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,13 @@ describe('TypeOrValueSpecifier', () => {
it.each<[string, TypeOrValueSpecifier]>([
['type Test = RegExp;', { from: 'lib', name: 'RegExp' }],
['type Test = RegExp;', { from: 'lib', name: ['RegExp', 'BigInt'] }],
['type Test = string;', { from: 'lib', name: 'string' }],
])('matches a matching lib specifier: %s', runTestPositive);

it.each<[string, TypeOrValueSpecifier]>([
['type Test = RegExp;', { from: 'lib', name: 'BigInt' }],
['type Test = RegExp;', { from: 'lib', name: ['BigInt', 'Date'] }],
['type Test = Unresolved;', { from: 'lib', name: ['Unresolved'] }],
])("doesn't match a mismatched lib specifier: %s", runTestNegative);

it.each<[string, TypeOrValueSpecifier]>([
Expand Down

0 comments on commit c5fe22d

Please sign in to comment.