Perf: simplify file equal
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-03-19 23:56:52 +08:00
parent feb7dc4ba6
commit 9be66afce7
2 changed files with 23 additions and 17 deletions

View File

@@ -57,15 +57,27 @@ describe('fileEqual', () => {
false
));
it('eol more', () => test(
it('eol more #1', () => test(
['A', 'B'],
['A', 'B', ''],
false
));
it('eol less', () => test(
it('eol more #2', () => test(
['A', 'B', ''],
['A', 'B', '', ''],
false
));
it('eol less #1', () => test(
['A', 'B', ''],
['A', 'B'],
false
));
it('eol less #2', () => test(
['A', 'B', '', ''],
['A', 'B', ''],
false
));
});