Skip to content

Commit

Permalink
test fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
pbohlman committed Dec 2, 2024
1 parent f318650 commit 648253d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/db/test/db.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5367,7 +5367,11 @@ describe('db.clear()', () => {

const originalMetadata = JSON.parse(
JSON.stringify(
await genToArr(db.tripleStore.tupleStore.scan({ prefix: ['metadata'] }))
(
await genToArr(
db.tripleStore.tupleStore.scan({ prefix: ['metadata'] })
)
).filter((t) => t.key[1] !== 'clock')
)
);

Expand All @@ -5389,9 +5393,9 @@ describe('db.clear()', () => {
const schema = await db.getSchema();
expect(schema).not.toEqual(undefined);

const metadataTuples = await genToArr(
db.tripleStore.tupleStore.scan({ prefix: ['metadata'] })
);
const metadataTuples = (
await genToArr(db.tripleStore.tupleStore.scan({ prefix: ['metadata'] }))
).filter((t) => t.key[1] !== 'clock');
expect(metadataTuples).toEqual(originalMetadata);
}
});
Expand Down

0 comments on commit 648253d

Please sign in to comment.