mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Perf: replace for await w/ iterator
This commit is contained in:
@@ -19,20 +19,26 @@ describe('fileEqual', () => {
|
||||
true
|
||||
));
|
||||
|
||||
it('ignore comment', async () => {
|
||||
it('ignore comment 1', async () => {
|
||||
await test(
|
||||
['# A', 'B'],
|
||||
['# B', 'B'],
|
||||
true
|
||||
);
|
||||
|
||||
await test(
|
||||
['# A', '# C', 'B'],
|
||||
['# A', '# D', 'B'],
|
||||
true
|
||||
);
|
||||
});
|
||||
|
||||
it('ignore comment 2', () => test(
|
||||
['# A', '# C', 'B'],
|
||||
['# A', '# D', 'B'],
|
||||
true
|
||||
));
|
||||
|
||||
it('ignore comment 3', () => test(
|
||||
['# A', '# C', 'B'],
|
||||
['# A', '# D', 'A'],
|
||||
false
|
||||
));
|
||||
|
||||
it('comment more', () => test(
|
||||
['# A', 'B'],
|
||||
['# A', '# B', 'B'],
|
||||
|
||||
Reference in New Issue
Block a user