mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 00:45:04 +01:00
fix tests
This commit is contained in:
parent
e455e71aa2
commit
309a286a1a
2 changed files with 41 additions and 11 deletions
|
|
@ -3,7 +3,7 @@ import { lines } from "./error";
|
|||
it("should extract lines correctly", () => {
|
||||
const input = "AAA\nmeow\n:3\n\n";
|
||||
|
||||
const lineSpans = lines(input);
|
||||
const lineSpans = lines({ content: input });
|
||||
const lineContents = lineSpans.map(({ start, end }) =>
|
||||
input.slice(start, end)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue