Skip to content

Commit

Permalink
test: fix story-sync tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadaaa committed Feb 21, 2024
1 parent 888bf76 commit 40950d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ describe("createStorageAdapter", async () => {
expect(tables).toMatchInlineSnapshot(`
[
{
"address": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f",
"address": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f",
"keySchema": {},
"name": "NumberList",
"namespace": "",
Expand All @@ -107,7 +106,7 @@ describe("createStorageAdapter", async () => {
[
{
"__keyBytes": "0x",
"__lastUpdatedBlockNumber": 23n,
"__lastUpdatedBlockNumber": 28n,
"value": [
420,
69,
Expand Down
12 changes: 5 additions & 7 deletions packages/store-sync/src/sqlite/sqliteStorage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ describe("sqliteStorage", async () => {
expect(db.select().from(mudStoreTables).where(eq(mudStoreTables.name, "NumberList")).all()).toMatchInlineSnapshot(`
[
{
"address": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f",
"id": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f____NumberList",
"address": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f",
"id": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f____NumberList",
"keySchema": {},
"lastError": null,
"lastUpdatedBlockNumber": 28n,
Expand All @@ -94,9 +93,8 @@ describe("sqliteStorage", async () => {
expect(tables).toMatchInlineSnapshot(`
[
{
"address": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f",
"id": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f____NumberList",
"address": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f",
"id": "0xd843FB6A5fD209344E5A1b3d5c121330c2B4a36f____NumberList",
"keySchema": {},
"lastError": null,
"lastUpdatedBlockNumber": 28n,
Expand All @@ -119,7 +117,7 @@ describe("sqliteStorage", async () => {
"__encodedLengths": "0x0000000000000000000000000000000000000000000000000800000000000008",
"__isDeleted": false,
"__key": "0x",
"__lastUpdatedBlockNumber": 23n,
"__lastUpdatedBlockNumber": 28n,
"__staticData": null,
"value": [
420,
Expand Down

0 comments on commit 40950d7

Please sign in to comment.