pi-ext
bugabingas pi extensions
owned by bugabinga
test(nu-bang): update delimiter diagnostic
03e6491d24ae84903c9c9c22695fdcd70bfc78e0
Oliver Jan Krylow <oliver@bugabinga.net> ·
SSH signature · not checked
Browse filesCompare with HEAD
Changed files (1)
extensions/nu-bang/__tests__/real-world-full.test.ts
Modified325 325 test(
"shows nu's native delimiter diagnostics",
async ()
=> {
326 326 const result
= await run(
"[1 2 3");
327 327 expect(result.exitCode).
toBe(
1);
328 - expect(result.output).
toContain(
"nu::parser::unexpected_eof");
329 - expect(result.output).
toContain(
"expected closing ]");
328 + expect(result.output).
toContain(
"nu::parser::unclosed_delimiter");
329 + expect(result.output).
toContain(
"expected `]` here");
332 332 test(
"reports a missing working directory clearly",
async ()
=> {