Skip to content

Commit

Permalink
Update storex submodules to include latest fixes + fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
poltak committed Nov 26, 2020
1 parent 1fcdfcc commit 6d3f0a9
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/external/@worldbrain/memex-common
2 changes: 1 addition & 1 deletion app/external/@worldbrain/memex-storage
2 changes: 1 addition & 1 deletion app/external/@worldbrain/storex-pattern-modules
4 changes: 4 additions & 0 deletions app/src/tests/shared-fixtures/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,27 +104,31 @@ export async function checkIntegrationTestData(options: { storage: Storage }) {
{
id: expect.any(Number),
name: 'testA',
searchableName: 'testA',
isDeletable: false,
isNestable: false,
createdAt: expect.any(Date),
},
{
id: expect.any(Number),
name: 'testB',
searchableName: 'testB',
isDeletable: false,
isNestable: false,
createdAt: expect.any(Date),
},
{
id: expect.any(Number),
name: 'testC',
searchableName: 'testC',
isDeletable: false,
isNestable: false,
createdAt: expect.any(Date),
},
{
id: expect.any(Number),
name: 'testD',
searchableName: 'testD',
isDeletable: false,
isNestable: false,
createdAt: expect.any(Date),
Expand Down
12 changes: 6 additions & 6 deletions app/src/utils/quick-and-dirty-migrations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('Quick and dirty migrations tests', () => {
...baseEntry,
createdOn: time - 1,
needsIntegration: 0,
sharedOn: null,
sharedOn: 0,
pk: 0,
},
{
Expand All @@ -93,7 +93,7 @@ describe('Quick and dirty migrations tests', () => {
...baseEntry,
createdOn: time - 3,
needsIntegration: 1,
sharedOn: null,
sharedOn: 0,
pk: 2,
},
{
Expand Down Expand Up @@ -124,28 +124,28 @@ describe('Quick and dirty migrations tests', () => {
{
...baseEntry,
createdOn: time - 1,
needsIntegration: false,
needsIntegration: 0,
sharedOn: 0,
pk: 0,
},
{
...baseEntry,
createdOn: time - 2,
needsIntegration: false,
needsIntegration: 0,
sharedOn: 123,
pk: 1,
},
{
...baseEntry,
createdOn: time - 3,
needsIntegration: true,
needsIntegration: 1,
sharedOn: 0,
pk: 2,
},
{
...baseEntry,
createdOn: time - 4,
needsIntegration: true,
needsIntegration: 1,
sharedOn: 999,
pk: 3,
},
Expand Down

0 comments on commit 6d3f0a9

Please sign in to comment.