Housekeeping
Some checks are pending
Build / Build (push) Waiting to run
Build / Diff output (push) Blocked by required conditions
Build / Deploy to Cloudflare Pages (push) Blocked by required conditions
Build / Deploy to GitHub and GitLab (push) Blocked by required conditions

This commit is contained in:
SukkaW
2025-02-18 10:20:49 +08:00
parent 5d3385a144
commit 2bb8009d03
3 changed files with 120 additions and 173 deletions

View File

@@ -2,11 +2,11 @@ import { expect } from 'expect';
import { fileEqual } from './create-file';
// eslint-disable-next-line @typescript-eslint/require-await -- async iterable
const createSource = async function *(input: string[]) {
async function *createSource(input: string[]) {
for (const line of input) {
yield line;
}
};
}
async function test(a: string[], b: string[], expected: boolean) {
expect((await fileEqual(a, createSource(b)))).toBe(expected);