We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0532300 commit 2abfc4aCopy full SHA for 2abfc4a
tests/CustomMatchers/CustomMatchersForTasks.ts
@@ -20,7 +20,10 @@ declare global {
20
export function toToggleLineTo(line: string, expectedLines: string[]) {
21
const task = fromLine({ line: line });
22
const receivedLines = task.toggle().map((t) => t.toFileLineString());
23
+ return toMatchLines(receivedLines, expectedLines);
24
+}
25
26
+function toMatchLines(receivedLines: string[], expectedLines: string[]) {
27
const matches = receivedLines.join('\n') === expectedLines.join('\n');
28
if (!matches) {
29
return {
0 commit comments