Skip to content

Commit

Permalink
Add more test cases, with newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryDanielson authored Sep 16, 2024
1 parent 7c73be6 commit 6f14598
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,21 @@ describe('dependencyExtractor', () => {
import typeof {foo} from 'inv1';
import type {foo} from 'inv2';
import {type foo, typeof bar} from 'inv3';
import {
type foo,
typeof bar,
} from 'inv4'
// Good
import {foo, typeof bar} from 'inv4';
import {type foo, bar} from 'inv5';
import {foo, typeof bar} from 'inv5';
import {type foo, bar} from 'inv6';
import {
foo,
typeof bar
} from 'inv7';
import {
type foo,
bar
} from 'inv8';
`;
expect(extractor.extract(code)).toEqual(new Set(['inv4', 'inv5']));
});
Expand Down

0 comments on commit 6f14598

Please sign in to comment.