Skip to content

Commit b980896

Browse files
committed
Fix test
1 parent a796802 commit b980896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/project/service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ func TestService(t *testing.T) {
598598

599599
// Missing location should be watched
600600
assert.Check(t, slices.ContainsFunc(host.ClientMock.WatchFilesCalls()[1].Watchers, func(w *lsproto.FileSystemWatcher) bool {
601-
return *w.GlobPattern.Pattern == "/home/projects/TS/p1/src/z.ts" && *w.Kind == lsproto.WatchKindCreate
601+
return *w.GlobPattern.Pattern == "/home/projects/TS/p1/src/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}" && *w.Kind == lsproto.WatchKindCreate
602602
}))
603603

604604
// Add a new file through failed lookup watch

0 commit comments

Comments
 (0)