Skip to content

Commit daa8bb2

Browse files
committed
Make test deterministic across filesystems
1 parent 551378c commit daa8bb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/tailwindcss-language-server/src/project-locator.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ function testFixture(fixture: string, details: any[]) {
3131
expect(configPath).toEqual(detail?.config)
3232

3333
if (detail?.content) {
34-
let expected = detail?.content.map((path) => path.replace('{URL}', fixturePath))
34+
let expected = detail?.content.map((path) => path.replace('{URL}', fixturePath)).sort()
3535

3636
let actual = project.documentSelector
3737
.filter((selector) => selector.priority === 1 /** content */)
3838
.map((selector) => selector.pattern)
39+
.sort()
3940

4041
expect(actual).toEqual(expected)
4142
}

0 commit comments

Comments
 (0)