Skip to content

Commit

Permalink
Whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
RickiJay-WMDE committed Mar 4, 2024
1 parent 85e1cf1 commit 2340c7b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions test/specs/upgrade/queryservice-post-upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ describe( 'Wikibase post upgrade', function () {
bindings
);

expect( dateModified ).toBe( expect.anything() );
expect( schemaVersion ).toBe( expect.anything() );
expect( siteLinks ).toBe( expect.anything() );
expect( identifiers ).toBe( expect.anything() );
expect( timestamp ).toBe( expect.anything() );
expect( statement ).toBe( expect.anything() );
expect( dateModified ).toEqual( expect.anything() );
expect( schemaVersion ).toEqual( expect.anything() );
expect( siteLinks ).toEqual( expect.anything() );
expect( identifiers ).toEqual( expect.anything() );
expect( timestamp ).toEqual( expect.anything() );
expect( statement ).toEqual( expect.anything() );

expect( property.o.value ).toBe( propertyValue );
expect( itemLabelValue.o.value ).toBe( itemLabel );
Expand Down
18 changes: 9 additions & 9 deletions test/specs/upgrade/queryservice-pre-and-post-upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ describe( 'Wikibase post upgrade', function () {
bindings
);

expect( dateModified ).toBe( expect.anything() );
expect( schemaVersion ).toBe( expect.anything() );
expect( siteLinks ).toBe( expect.anything() );
expect( identifiers ).toBe( expect.anything() );
expect( timestamp ).toBe( expect.anything() );
expect( statement ).toBe( expect.anything() );

expect( property ).toBe( expect.anything() );
expect( dateModified ).toEqual( expect.anything() );
expect( schemaVersion ).toEqual( expect.anything() );
expect( siteLinks ).toEqual( expect.anything() );
expect( identifiers ).toEqual( expect.anything() );
expect( timestamp ).toEqual( expect.anything() );
expect( statement ).toEqual( expect.anything() );

expect( property ).toEqual( expect.anything() );
expect( property.o.value ).toBe( 'UpgradeItemStringValue' );

expect( itemLabelValue ).toBe( expect.anything() );
expect( itemLabelValue ).toEqual( expect.anything() );
expect( itemLabelValue.o.value ).toBe( 'UpgradeItem' );
} );
} );
2 changes: 1 addition & 1 deletion test/specs/upgrade/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ describe( 'Wikibase upgrade', function () {

it( 'should show up in Special:EntityData with json', async function () {
const data = await SpecialEntityDataPage.getData( oldItemID );
expect( data.entities[ oldItemID ].claims[ 0 ] ).toBe( expect.anything() );
expect( data.entities[ oldItemID ].claims ).toEqual( expect.anything() );
} );
} );

0 comments on commit 2340c7b

Please sign in to comment.