Skip to content

Commit 86d89be

Browse files
committed
style: run prettier on schemaMigrationFragility test
1 parent 568f3ea commit 86d89be

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

unitTests/resources/schemaMigrationFragility.test.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,7 @@ describe('schema-migration fragility: non-indexed attributes missing from table.
413413
table({
414414
table: TABLE,
415415
database: DB,
416-
attributes: [
417-
{ name: 'id', isPrimaryKey: true },
418-
{ name: 'name' },
419-
{ name: 'breed' },
420-
{ name: 'age' },
421-
],
416+
attributes: [{ name: 'id', isPrimaryKey: true }, { name: 'name' }, { name: 'breed' }, { name: 'age' }],
422417
});
423418
// Re-create the stale main-thread state: reset in-memory Table.attributes back to
424419
// [id] only, while attributesDbi still has all four. This is exactly the mismatch
@@ -450,21 +445,20 @@ describe('schema-migration fragility: non-indexed attributes missing from table.
450445
table({
451446
table: TABLE,
452447
database: DB,
453-
attributes: [
454-
{ name: 'id', isPrimaryKey: true },
455-
{ name: 'name' },
456-
],
448+
attributes: [{ name: 'id', isPrimaryKey: true }, { name: 'name' }],
457449
});
458450
// table() updates in-memory Table.attributes directly (databases.ts:997), so after the
459451
// call above the in-memory state is already [id, name]. Re-create the stale main-thread
460452
// view — still holding the old [id, name, breed, age] — so that the removal loop in
461453
// initStores() actually needs to drop breed and age.
462454
const tblForRemoval = getDatabases()[DB]?.[TABLE];
463-
tblForRemoval.attributes.splice(0, tblForRemoval.attributes.length,
455+
tblForRemoval.attributes.splice(
456+
0,
457+
tblForRemoval.attributes.length,
464458
{ name: 'id', isPrimaryKey: true },
465459
{ name: 'name' },
466460
{ name: 'breed' },
467-
{ name: 'age' },
461+
{ name: 'age' }
468462
);
469463
resetDatabases();
470464
const tbl = getDatabases()[DB]?.[TABLE];

0 commit comments

Comments
 (0)