Skip to content

Commit 06d30bf

Browse files
committed
test: remove unneeded comments
1 parent 87f6b16 commit 06d30bf

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

test/parallel/test-sqlite-backup.mjs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,11 @@ test('backup database using location as URL', async (t) => {
147147
const database = makeSourceDb();
148148
const destDb = pathToFileURL(nextDb());
149149

150-
await backup(database, destDb, {
151-
rate: 1,
152-
progress: progressFn,
153-
});
150+
await backup(database, destDb);
154151

155152
const backupDb = new DatabaseSync(destDb);
156153
const rows = backupDb.prepare('SELECT * FROM data').all();
157154

158-
// The source database has two pages - using the default page size -,
159-
// so the progress function should be called once (the last call is not made since
160-
// the promise resolves)
161-
t.assert.strictEqual(progressFn.mock.calls.length, 1);
162-
t.assert.deepStrictEqual(progressFn.mock.calls[0].arguments, [{ totalPages: 2, remainingPages: 1 }]);
163155
t.assert.deepStrictEqual(rows, [
164156
{ __proto__: null, key: 1, value: 'value-1' },
165157
{ __proto__: null, key: 2, value: 'value-2' },
@@ -184,11 +176,6 @@ test('backup database using location as Buffer', async (t) => {
184176
const backupDb = new DatabaseSync(destDb);
185177
const rows = backupDb.prepare('SELECT * FROM data').all();
186178

187-
// The source database has two pages - using the default page size -,
188-
// so the progress function should be called once (the last call is not made since
189-
// the promise resolves)
190-
t.assert.strictEqual(progressFn.mock.calls.length, 1);
191-
t.assert.deepStrictEqual(progressFn.mock.calls[0].arguments, [{ totalPages: 2, remainingPages: 1 }]);
192179
t.assert.deepStrictEqual(rows, [
193180
{ __proto__: null, key: 1, value: 'value-1' },
194181
{ __proto__: null, key: 2, value: 'value-2' },

0 commit comments

Comments
 (0)