Skip to content

Commit

Permalink
Use .toBeArray() in did-core-properties tests.
Browse files Browse the repository at this point in the history
Co-authored-by: Shigeya Suzuki <[email protected]>
  • Loading branch information
msporny and shigeya committed Apr 20, 2021
1 parent 5b13afb commit a1d2e01
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const generateDidCorePropertiesTests = (
'is a URI conforming to [RFC3986].', async () => {
const {alsoKnownAs} = didDocument;
if(alsoKnownAs) {
expect(Array.isArray(alsoKnownAs)).toBe(true);
expect(alsoKnownAs).toBeArray();
alsoKnownAs.forEach(alsoKnownAsValue => {
expect(alsoKnownAsValue).toBeValidUri();
});
Expand All @@ -49,7 +49,7 @@ const generateDidCorePropertiesTests = (
async () => {
const {verificationMethod} = didDocument;
if(verificationMethod) {
expect(Array.isArray(verificationMethod)).toBe(true);
expect(verificationMethod).toArray();
verificationMethod.forEach(verificationMethodValue => {
expect(verificationMethodValue).toBeInfraMap();
});
Expand Down

0 comments on commit a1d2e01

Please sign in to comment.