mirror of
https://github.com/SukkaW/Surge.git
synced 2026-03-18 00:46:40 +08:00
Chore: repalce expect w/ earl
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { expect } from 'expect';
|
||||
import { expect } from 'earl';
|
||||
import { fileEqual } from './create-file';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/require-await -- async iterable
|
||||
@@ -9,7 +9,7 @@ async function *createSource(input: string[]) {
|
||||
}
|
||||
|
||||
async function test(a: string[], b: string[], expected: boolean) {
|
||||
expect((await fileEqual(a, createSource(b)))).toBe(expected);
|
||||
expect((await fileEqual(a, createSource(b)))).toEqual(expected);
|
||||
}
|
||||
|
||||
describe('fileEqual', () => {
|
||||
|
||||
Reference in New Issue
Block a user