Skip to content

Commit 673bcda

Browse files
committed
f
1 parent e5669a1 commit 673bcda

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

test/egg.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -783,14 +783,11 @@ describe('test/egg.test.ts', () => {
783783
error = e;
784784
}
785785
assert.strictEqual(error.message, 'didLoad error');
786-
assert.deepStrictEqual((app as any).bootLog, ['configDidLoad']);
786+
assert.deepEqual((app as any).bootLog, ['configDidLoad']);
787787
await sleep(10);
788-
assert.deepStrictEqual((app as any).bootLog, [
789-
'configDidLoad',
790-
'didReady',
791-
]);
788+
assert.deepEqual((app as any).bootLog, ['configDidLoad', 'didReady']);
792789
await app.close();
793-
assert.deepStrictEqual((app as any).bootLog, [
790+
assert.deepEqual((app as any).bootLog, [
794791
'configDidLoad',
795792
'didReady',
796793
'beforeClose',

test/loader/load_file.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('test/loader/load_file.test.ts', () => {
3939
const buf = await app.loader.loadFile(getFilepath('load_file/no-js.yml'));
4040
let result = buf.toString();
4141
if (process.platform === 'win32') {
42-
result = result.replaceAll(String.raw`\r\n`, '\n');
42+
result = result.replaceAll('\r\n', '\n');
4343
}
4444
assert.equal(result, '---\nmap:\n a: 1\n b: 2\n');
4545
});

test/utils/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('test/utils/index.test.ts', () => {
8181
const buf = await utils.loadFile(path.join(baseDir, 'no-js.yml'));
8282
let result = buf.toString();
8383
if (process.platform === 'win32') {
84-
result = result.replaceAll(String.raw`\r\n`, '\n');
84+
result = result.replaceAll('\r\n', '\n');
8585
}
8686
assert.equal(result, '---\nmap:\n a: 1\n b: 2\n');
8787
});
@@ -157,7 +157,7 @@ describe('test/utils/index.test.ts', () => {
157157
const buf = await utils.loadFile(path.join(baseDir, 'no-js.yml'));
158158
let result = buf.toString();
159159
if (process.platform === 'win32') {
160-
result = result.replaceAll(String.raw`\r\n`, '\n');
160+
result = result.replaceAll('\r\n', '\n');
161161
}
162162
assert.equal(result, '---\nmap:\n a: 1\n b: 2\n');
163163
});

0 commit comments

Comments
 (0)