diff --git a/test/specs/upgrade/queryservice-post-upgrade.ts b/test/specs/upgrade/queryservice-post-upgrade.ts index 3994b18ad..1de526e37 100644 --- a/test/specs/upgrade/queryservice-post-upgrade.ts +++ b/test/specs/upgrade/queryservice-post-upgrade.ts @@ -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 ); diff --git a/test/specs/upgrade/queryservice-pre-and-post-upgrade.ts b/test/specs/upgrade/queryservice-pre-and-post-upgrade.ts index e99a16771..e60246f13 100644 --- a/test/specs/upgrade/queryservice-pre-and-post-upgrade.ts +++ b/test/specs/upgrade/queryservice-pre-and-post-upgrade.ts @@ -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' ); } ); } ); diff --git a/test/specs/upgrade/upgrade.ts b/test/specs/upgrade/upgrade.ts index 67e603d0c..2e58706a7 100644 --- a/test/specs/upgrade/upgrade.ts +++ b/test/specs/upgrade/upgrade.ts @@ -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() ); } ); } );