Skip to content

Commit 51574a8

Browse files
committed
Add expected diagnostics to bundle tests
1 parent e11d018 commit 51574a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/bundle.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ test("LuaLibImportKind.Inline generates a warning", () => {
9090
result.push(3);
9191
`
9292
.setOptions({ luaLibImport: LuaLibImportKind.Inline })
93-
.expectDiagnosticsToMatchSnapshot(undefined, true)
93+
.expectDiagnosticsToMatchSnapshot([0], true)
9494
.expectToEqual({ result: [1, 2, 3] });
9595
});
9696

@@ -113,9 +113,9 @@ test("cyclic imports", () => {
113113
});
114114

115115
test("no entry point", () => {
116-
util.testBundle``.setOptions({ luaBundleEntry: undefined }).expectDiagnosticsToMatchSnapshot(undefined, true);
116+
util.testBundle``.setOptions({ luaBundleEntry: undefined }).expectDiagnosticsToMatchSnapshot([0], true);
117117
});
118118

119119
test("luaEntry doesn't exist", () => {
120-
util.testBundle``.setEntryPoint("entry.ts").expectDiagnosticsToMatchSnapshot(undefined, true);
120+
util.testBundle``.setEntryPoint("entry.ts").expectDiagnosticsToMatchSnapshot([0], true);
121121
});

0 commit comments

Comments
 (0)