mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Update Tests & Make TypeScript happy
This commit is contained in:
@@ -7,7 +7,7 @@ import { SOURCE_DIR } from '../constants/dir';
|
||||
|
||||
const file = path.join(SOURCE_DIR, 'domainset/cdn.conf');
|
||||
|
||||
group('read file by line', () => {
|
||||
group(() => {
|
||||
bench('readFileByLine', () => processLineFromReadline(readFileByLine(file)));
|
||||
bench('fsp.readFile', () => fsp.readFile(file, 'utf-8').then((content) => content.split('\n').filter(processLine)));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user