Skip to content

Commit db614e3

Browse files
committed
fixup! sqlite: restore changes from #55373
1 parent 06b3b94 commit db614e3

File tree

2 files changed

+10
-22
lines changed

2 files changed

+10
-22
lines changed
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
'use strict';
2-
const { test } = require('node:test');
2+
const { snapshot, test } = require('node:test');
3+
const { basename, join } = require('node:path');
4+
5+
snapshot.setResolveSnapshotPath((testFile) => {
6+
return join(process.cwd(), `${basename(testFile)}.snapshot`);
7+
});
38

49
test('\r', (t) => {
510
t.assert.snapshot({ key: 'value' });
611
});
712

8-
test(String.fromCharCode(55296), t => {
9-
t.assert.snapshot({key: 'value'});
13+
test(String.fromCharCode(55296), (t) => {
14+
t.assert.snapshot({ key: 'value' });
1015
});
1116

12-
test(String.fromCharCode(57343), t => {
13-
t.assert.snapshot({key: 'value'});
17+
test(String.fromCharCode(57343), (t) => {
18+
t.assert.snapshot({ key: 'value' });
1419
});

test/fixtures/test-runner/snapshots/special-character.js.snapshot

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)