Skip to content

Commit f4c2d59

Browse files
committed
Update bundles.test.js
1 parent 3164856 commit f4c2d59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/bundles.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ const result = await generator("hello", { max_new_tokens: 3, return_full_text: f
99
process.stdout.write(result[0].generated_text);
1010
`;
1111

12-
const TARGET_OUTPUT = "erdingsAndroid Load";
12+
const TARGET_OUTPUT = "erdingsdelete mely";
1313

1414
const wrap_async_iife = (code) => `(async function() { ${code} })();`;
1515

1616
const check = (code, module = false) => {
1717
const args = ["-e", code];
1818
if (module) args.push("--input-type=module");
1919
const { status, stdout, stderr } = spawnSync("node", args);
20-
expect(stderr.toString()).toBe(""); // No warnings or errors are printed
21-
expect(stdout.toString()).toBe(TARGET_OUTPUT); // The output should match
22-
expect(status).toBe(0); // The process should exit cleanly
20+
expect(stderr.toString()).toEqual(""); // No warnings or errors are printed
21+
expect(stdout.toString()).toEqual(TARGET_OUTPUT); // The output should match
22+
expect(status).toEqual(0); // The process should exit cleanly
2323
};
2424

2525
describe("Testing the bundle", () => {

0 commit comments

Comments
 (0)