Skip to content

Instantly share code, notes, and snippets.

@shigeya
Created May 24, 2021 14:22
Show Gist options
  • Save shigeya/b7d6a8afbb699b28a460978858f45ff0 to your computer and use it in GitHub Desktop.
Save shigeya/b7d6a8afbb699b28a460978858f45ff0 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
FAIL packages/did-core-test-server/suites/did-identifier/did-identifier.spec.js
● suites/did-identifier › IMPLEMENTATION ::DID Test Suite:: › 3.x Identifier - did:example - DID Test Suite - DID Working Group › 3.1 DID Syntax › did:example:123 › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Test Suite:: › 3.x Identifier - did:example - DID Test Suite - DID Working Group › 3.2 DID URL Syntax › hl › 3.2.1 DID Parameters - hl - If present, the associated value MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
47 | if (didParameter === 'hl') {
48 | it('3.2.1 DID Parameters - hl - If present, the associated value MUST be an ASCII string.', async () => {
> 49 | expect(param).toBeAsciiString();
| ^
50 | });
51 | }
52 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:49:29)
● suites/did-identifier › IMPLEMENTATION ::DID Test Suite:: › 3.x Identifier - did:example - DID Test Suite - DID Working Group › 3.2 DID URL Syntax › service › 3.2.1 DID Parameters - service - If present, the associated value MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
19 | if (didParameter === 'service') {
20 | it('3.2.1 DID Parameters - service - If present, the associated value MUST be an ASCII string.', async () => {
> 21 | expect(param).toBeAsciiString();
| ^
22 | });
23 | }
24 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:21:29)
● suites/did-identifier › IMPLEMENTATION ::DID Test Suite:: › 3.x Identifier - did:example - DID Test Suite - DID Working Group › 3.2 DID URL Syntax › relativeRef › 3.2.1 DID Parameters - relativeRef - If present, the associated value MUST be an ASCII string and MUST use percent-encoding for certain characters as specified in RFC3986 Section 2.1.
TypeError: expect(...).toBeAsciiString is not a function
25 | if (didParameter === 'relativeRef') {
26 | it('3.2.1 DID Parameters - relativeRef - If present, the associated value MUST be an ASCII string and MUST use percent-encoding for certain characters as specified in RFC3986 Section 2.1.', async () => {
> 27 | expect(param).toBeAsciiString();
| ^
28 | if (param.includes('/')) {
29 | expect(didUrl.includes('%2F')).toBe(true);
30 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:27:29)
● suites/did-identifier › IMPLEMENTATION ::DID Test Suite:: › 3.x Identifier - did:example - DID Test Suite - DID Working Group › 3.2 DID URL Syntax › versionId › 3.2.1 DID Parameters - versionId - If present, the associated value MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
34 | if (didParameter === 'versionId') {
35 | it('3.2.1 DID Parameters - versionId - If present, the associated value MUST be an ASCII string.', async () => {
> 36 | expect(param).toBeAsciiString();
| ^
37 | });
38 | }
39 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:36:29)
● suites/did-identifier › IMPLEMENTATION ::DID Test Suite:: › 3.x Identifier - did:example - DID Test Suite - DID Working Group › 3.2 DID URL Syntax › versionTime › 3.2.1 DID Parameters - versionTime - If present, the associated value MUST be an ASCII string which is a valid XML datetime value, as defined in section 3.3.7 of W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes [XMLSCHEMA11-2]. This datetime value MUST be normalized to UTC 00:00:00 and without sub-second decimal precision. For example: 2020-12-20T19:17:47Z.
TypeError: expect(...).toBeAsciiString is not a function
40 | if (didParameter === 'versionTime') {
41 | it('3.2.1 DID Parameters - versionTime - If present, the associated value MUST be an ASCII string which is a valid XML datetime value, as defined in section 3.3.7 of W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes [XMLSCHEMA11-2]. This datetime value MUST be normalized to UTC 00:00:00 and without sub-second decimal precision. For example: 2020-12-20T19:17:47Z.', async () => {
> 42 | expect(param).toBeAsciiString();
| ^
43 | expect(param).toBeDidCoreDatetime();
44 | });
45 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:42:29)
● suites/did-identifier › IMPLEMENTATION ::DID IS Test Suite:: › 3.x Identifier - did:is - DID IS Test Suite - Blockcore › 3.1 DID Syntax › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 3.x Identifier - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › 3.1 DID Syntax › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 3.x Identifier - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › 3.1 DID Syntax › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 3.x Identifier - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › 3.1 DID Syntax › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 3.x Identifier - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › 3.2 DID URL Syntax › versionId › 3.2.1 DID Parameters - versionId - If present, the associated value MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
34 | if (didParameter === 'versionId') {
35 | it('3.2.1 DID Parameters - versionId - If present, the associated value MUST be an ASCII string.', async () => {
> 36 | expect(param).toBeAsciiString();
| ^
37 | });
38 | }
39 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:36:29)
● suites/did-identifier › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 3.x Identifier - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › 3.2 DID URL Syntax › versionTime › 3.2.1 DID Parameters - versionTime - If present, the associated value MUST be an ASCII string which is a valid XML datetime value, as defined in section 3.3.7 of W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes [XMLSCHEMA11-2]. This datetime value MUST be normalized to UTC 00:00:00 and without sub-second decimal precision. For example: 2020-12-20T19:17:47Z.
TypeError: expect(...).toBeAsciiString is not a function
40 | if (didParameter === 'versionTime') {
41 | it('3.2.1 DID Parameters - versionTime - If present, the associated value MUST be an ASCII string which is a valid XML datetime value, as defined in section 3.3.7 of W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes [XMLSCHEMA11-2]. This datetime value MUST be normalized to UTC 00:00:00 and without sub-second decimal precision. For example: 2020-12-20T19:17:47Z.', async () => {
> 42 | expect(param).toBeAsciiString();
| ^
43 | expect(param).toBeDidCoreDatetime();
44 | });
45 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:42:29)
● suites/did-identifier › IMPLEMENTATION ::ethr-did-resolver:: › 3.x Identifier - did:ethr - ethr-did-resolver - ConsenSys Mesh › 3.1 DID Syntax › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::ethr-did-resolver:: › 3.x Identifier - did:ethr - ethr-did-resolver - ConsenSys Mesh › 3.2 DID URL Syntax › versionId › 3.2.1 DID Parameters - versionId - If present, the associated value MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
34 | if (didParameter === 'versionId') {
35 | it('3.2.1 DID Parameters - versionId - If present, the associated value MUST be an ASCII string.', async () => {
> 36 | expect(param).toBeAsciiString();
| ^
37 | });
38 | }
39 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:36:29)
● suites/did-identifier › IMPLEMENTATION ::DID Test Suite:: › 3.x Identifier - did:trust - DID Test Suite - TrustCerts GmbH › 3.1 DID Syntax › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::did-veres-one (2021):: › 3.x Identifier - did:v1 - did-veres-one (2021) - Veres One Foundation › 3.1 DID Syntax › did:v1:nym:z6Mks6XhVxGqMw4v4Y7a4MvhTypUkNMGt2SMGCVPpAS4bqp4 › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 3.x Identifier - did:monid - did-method-monid (2021 lx tech) - Min Ju › 3.1 DID Syntax › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 3.x Identifier - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › 3.1 DID Syntax › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 3.x Identifier - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › 3.2 DID URL Syntax › versionId › 3.2.1 DID Parameters - versionId - If present, the associated value MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
34 | if (didParameter === 'versionId') {
35 | it('3.2.1 DID Parameters - versionId - If present, the associated value MUST be an ASCII string.', async () => {
> 36 | expect(param).toBeAsciiString();
| ^
37 | });
38 | }
39 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:36:29)
● suites/did-identifier › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 3.x Identifier - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › 3.2 DID URL Syntax › versionTime › 3.2.1 DID Parameters - versionTime - If present, the associated value MUST be an ASCII string which is a valid XML datetime value, as defined in section 3.3.7 of W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes [XMLSCHEMA11-2]. This datetime value MUST be normalized to UTC 00:00:00 and without sub-second decimal precision. For example: 2020-12-20T19:17:47Z.
TypeError: expect(...).toBeAsciiString is not a function
40 | if (didParameter === 'versionTime') {
41 | it('3.2.1 DID Parameters - versionTime - If present, the associated value MUST be an ASCII string which is a valid XML datetime value, as defined in section 3.3.7 of W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes [XMLSCHEMA11-2]. This datetime value MUST be normalized to UTC 00:00:00 and without sub-second decimal precision. For example: 2020-12-20T19:17:47Z.', async () => {
> 42 | expect(param).toBeAsciiString();
| ^
43 | expect(param).toBeDidCoreDatetime();
44 | });
45 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-parameters.js:42:29)
● suites/did-identifier › IMPLEMENTATION ::DID IS Test Suite:: › 3.x Identifier - did:vaa - DID IS Test Suite - CAICT › 3.1 DID Syntax › did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
● suites/did-identifier › IMPLEMENTATION ::DID Orb Test Suite:: › 3.x Identifier - did:orb - DID Orb Test Suite - SecureKey › 3.1 DID Syntax › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
11 | });
12 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-identifier/did-syntax.js:9:30)
FAIL packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222 › PARAMETER expected outcome: defaultOutcome › didUrl › 3.1 DID Syntax - All DID URLs MUST conform to the DID URL Syntax ABNF Rules.
TypeError: expect(...).toBeValidDidUrl is not a function
11 | 'ABNF Rules.', async () => {
12 | if(! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 13 | expect(didUrl).toBeValidDidUrl();
| ^
14 | }
15 | });
16 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:13:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222 › PARAMETER expected outcome: defaultOutcome › didUrl › 7.2 DID URL Dereferencing - A conformant DID URL as a single string.
TypeError: expect(...).toBeValidDidUrl is not a function
18 | it('7.2 DID URL Dereferencing - A conformant DID URL as a single string.', async() => {
19 | if (! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 20 | expect(didUrl).toBeValidDidUrl();
| ^
21 | }
22 | });
23 | it('7.2 DID URL Dereferencing - To dereference a DID fragment, the complete DID URL including the DID fragment MUST be used.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:20:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222 › PARAMETER expected outcome: defaultOutcome › dereferencingOptions › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:39:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222 › PARAMETER expected outcome: defaultOutcome › dereferencingMetadata › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:47:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222 › PARAMETER expected outcome: defaultOutcome › contentMetadata › 7.2 DID URL Dereferencing - If the dereferencing is successful, this MUST be a metadata structure, but the structure MAY be empty.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:80:19)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222 › PARAMETER expected outcome: defaultOutcome › contentMetadata › If the contentStream is a DID document, this MUST be a didDocumentMetadata structure as described in DID Resolution. › encountered a declaration exception
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:87:21)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:83:9)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:77:7)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:8:5)
at Object.didUrlDereferencingTests (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:7:3)
at forEach (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:19:46)
at Array.forEach (<anonymous>)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:17:35)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:15:7)
at forEach (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:12:5)
at Array.forEach (<anonymous>)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:11:36)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:10:1)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222 › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.
TypeError: expect(...).toBeMediaType is not a function
101 | if (dereferenceOptions.hasOwnProperty('accept')) {
102 | it('7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.', async () => {
> 103 | expect(dereferenceOptions['accept']).toBeMediaType();
| ^
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
106 | expect(dereferenceOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:103:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222 › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 106 | expect(dereferenceOptions['accept']).toBeAsciiString();
| ^
107 | });
108 | }
109 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:106:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222 › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Metadata › contentType › 7.2.2 DID URL Dereferencing Metadata - The Media Type value MUST be expressed as an ASCII string.
TypeError: expect(...).toBeMediaType is not a function
113 | if (dereferencingMetadata.hasOwnProperty('contentType')) {
114 | it('7.2.2 DID URL Dereferencing Metadata - The Media Type value MUST be expressed as an ASCII string.', async () => {
> 115 | expect(dereferencingMetadata['contentType']).toBeMediaType();
| ^
116 | expect(dereferencingMetadata['contentType']).toBeAsciiString();
117 | });
118 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:115:60)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222#key-1 › PARAMETER expected outcome: defaultOutcome › didUrl › 3.1 DID Syntax - All DID URLs MUST conform to the DID URL Syntax ABNF Rules.
TypeError: expect(...).toBeValidDidUrl is not a function
11 | 'ABNF Rules.', async () => {
12 | if(! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 13 | expect(didUrl).toBeValidDidUrl();
| ^
14 | }
15 | });
16 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:13:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222#key-1 › PARAMETER expected outcome: defaultOutcome › didUrl › 7.2 DID URL Dereferencing - A conformant DID URL as a single string.
TypeError: expect(...).toBeValidDidUrl is not a function
18 | it('7.2 DID URL Dereferencing - A conformant DID URL as a single string.', async() => {
19 | if (! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 20 | expect(didUrl).toBeValidDidUrl();
| ^
21 | }
22 | });
23 | it('7.2 DID URL Dereferencing - To dereference a DID fragment, the complete DID URL including the DID fragment MUST be used.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:20:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222#key-1 › PARAMETER expected outcome: defaultOutcome › dereferencingOptions › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:39:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222#key-1 › PARAMETER expected outcome: defaultOutcome › dereferencingMetadata › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:47:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222#key-1 › PARAMETER expected outcome: defaultOutcome › contentMetadata › 7.2 DID URL Dereferencing - If the dereferencing is successful, this MUST be a metadata structure, but the structure MAY be empty.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:80:19)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222#key-1 › PARAMETER expected outcome: defaultOutcome › contentMetadata › If the contentStream is a DID document, this MUST be a didDocumentMetadata structure as described in DID Resolution. › encountered a declaration exception
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:87:21)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:83:9)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:77:7)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:8:5)
at Object.didUrlDereferencingTests (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:7:3)
at forEach (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:19:46)
at Array.forEach (<anonymous>)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:17:35)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:15:7)
at forEach (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:12:5)
at Array.forEach (<anonymous>)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:11:36)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:10:1)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222#key-1 › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.
TypeError: expect(...).toBeMediaType is not a function
101 | if (dereferenceOptions.hasOwnProperty('accept')) {
102 | it('7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.', async () => {
> 103 | expect(dereferenceOptions['accept']).toBeMediaType();
| ^
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
106 | expect(dereferenceOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:103:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222#key-1 › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 106 | expect(dereferenceOptions['accept']).toBeAsciiString();
| ^
107 | });
108 | }
109 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:106:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:222#key-1 › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Metadata › contentType › 7.2.2 DID URL Dereferencing Metadata - The Media Type value MUST be expressed as an ASCII string.
TypeError: expect(...).toBeMediaType is not a function
113 | if (dereferencingMetadata.hasOwnProperty('contentType')) {
114 | it('7.2.2 DID URL Dereferencing Metadata - The Media Type value MUST be expressed as an ASCII string.', async () => {
> 115 | expect(dereferencingMetadata['contentType']).toBeMediaType();
| ^
116 | expect(dereferencingMetadata['contentType']).toBeAsciiString();
117 | });
118 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:115:60)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example_333 › PARAMETER expected outcome: invalidDidUrlErrorOutcome › dereferencingOptions › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:39:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example_333 › PARAMETER expected outcome: invalidDidUrlErrorOutcome › dereferencingMetadata › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:47:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example_333 › PARAMETER expected outcome: invalidDidUrlErrorOutcome › contentMetadata › 7.2 DID URL Dereferencing - If the dereferencing is unsuccessful, this output MUST be an empty metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:94:19)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example_333 › PARAMETER expected outcome: invalidDidUrlErrorOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.
TypeError: expect(...).toBeMediaType is not a function
101 | if (dereferenceOptions.hasOwnProperty('accept')) {
102 | it('7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.', async () => {
> 103 | expect(dereferenceOptions['accept']).toBeMediaType();
| ^
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
106 | expect(dereferenceOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:103:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example_333 › PARAMETER expected outcome: invalidDidUrlErrorOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 106 | expect(dereferenceOptions['accept']).toBeAsciiString();
| ^
107 | });
108 | }
109 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:106:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example_333 › PARAMETER expected outcome: invalidDidUrlErrorOutcome › DID URL Dereferencing Metadata › error › 7.2.2 DID URL Dereferencing Metadata - The value of this property MUST be a single keyword ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
126 | if (dereferencingMetadata.hasOwnProperty('error')) {
127 | it('7.2.2 DID URL Dereferencing Metadata - The value of this property MUST be a single keyword ASCII string.', async () => {
> 128 | expect(dereferencingMetadata['error']).toBeAsciiString();
| ^
129 | expect(dereferencingMetadata['error']).not.toMatch('\\s');
130 | });
131 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:128:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example_333 › PARAMETER expected outcome: invalidDidUrlErrorOutcome › DID URL Dereferencing Metadata › error › 7.2.2 DID URL Dereferencing Metadata - invalidDidUrl - The DID URL supplied to the DID URL dereferencing function does not conform to valid syntax.
TypeError: expect(...).not.toBeValidDidUrl is not a function
133 | it('7.2.2 DID URL Dereferencing Metadata - invalidDidUrl - The DID URL supplied to the DID URL dereferencing function does not conform to valid syntax.', async () => {
134 | expect(dereferencingMetadata['error']).toBe('invalidDidUrl');
> 135 | expect(didUrl).not.toBeValidDidUrl();
| ^
136 | });
137 | }
138 | if (expectedOutcome === 'notFoundErrorOutcome') {
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:135:34)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:444 › PARAMETER expected outcome: notFoundErrorOutcome › didUrl › 3.1 DID Syntax - All DID URLs MUST conform to the DID URL Syntax ABNF Rules.
TypeError: expect(...).toBeValidDidUrl is not a function
11 | 'ABNF Rules.', async () => {
12 | if(! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 13 | expect(didUrl).toBeValidDidUrl();
| ^
14 | }
15 | });
16 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:13:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:444 › PARAMETER expected outcome: notFoundErrorOutcome › didUrl › 7.2 DID URL Dereferencing - A conformant DID URL as a single string.
TypeError: expect(...).toBeValidDidUrl is not a function
18 | it('7.2 DID URL Dereferencing - A conformant DID URL as a single string.', async() => {
19 | if (! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 20 | expect(didUrl).toBeValidDidUrl();
| ^
21 | }
22 | });
23 | it('7.2 DID URL Dereferencing - To dereference a DID fragment, the complete DID URL including the DID fragment MUST be used.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:20:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:444 › PARAMETER expected outcome: notFoundErrorOutcome › dereferencingOptions › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:39:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:444 › PARAMETER expected outcome: notFoundErrorOutcome › dereferencingMetadata › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:47:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:444 › PARAMETER expected outcome: notFoundErrorOutcome › contentMetadata › 7.2 DID URL Dereferencing - If the dereferencing is unsuccessful, this output MUST be an empty metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:94:19)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:444 › PARAMETER expected outcome: notFoundErrorOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.
TypeError: expect(...).toBeMediaType is not a function
101 | if (dereferenceOptions.hasOwnProperty('accept')) {
102 | it('7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.', async () => {
> 103 | expect(dereferenceOptions['accept']).toBeMediaType();
| ^
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
106 | expect(dereferenceOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:103:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:444 › PARAMETER expected outcome: notFoundErrorOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 106 | expect(dereferenceOptions['accept']).toBeAsciiString();
| ^
107 | });
108 | }
109 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:106:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::Example Dereferencer:: › 7.2.x DID URL Dereferencing - Example Dereferencer - DID Working Group › did:example:444 › PARAMETER expected outcome: notFoundErrorOutcome › DID URL Dereferencing Metadata › error › 7.2.2 DID URL Dereferencing Metadata - The value of this property MUST be a single keyword ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
126 | if (dereferencingMetadata.hasOwnProperty('error')) {
127 | it('7.2.2 DID URL Dereferencing Metadata - The value of this property MUST be a single keyword ASCII string.', async () => {
> 128 | expect(dereferencingMetadata['error']).toBeAsciiString();
| ^
129 | expect(dereferencingMetadata['error']).not.toMatch('\\s');
130 | });
131 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:128:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionTime=2021-03-16T10:09:21Z › PARAMETER expected outcome: defaultOutcome › didUrl › 3.1 DID Syntax - All DID URLs MUST conform to the DID URL Syntax ABNF Rules.
TypeError: expect(...).toBeValidDidUrl is not a function
11 | 'ABNF Rules.', async () => {
12 | if(! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 13 | expect(didUrl).toBeValidDidUrl();
| ^
14 | }
15 | });
16 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:13:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionTime=2021-03-16T10:09:21Z › PARAMETER expected outcome: defaultOutcome › didUrl › 7.2 DID URL Dereferencing - A conformant DID URL as a single string.
TypeError: expect(...).toBeValidDidUrl is not a function
18 | it('7.2 DID URL Dereferencing - A conformant DID URL as a single string.', async() => {
19 | if (! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 20 | expect(didUrl).toBeValidDidUrl();
| ^
21 | }
22 | });
23 | it('7.2 DID URL Dereferencing - To dereference a DID fragment, the complete DID URL including the DID fragment MUST be used.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:20:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionTime=2021-03-16T10:09:21Z › PARAMETER expected outcome: defaultOutcome › dereferencingOptions › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:39:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionTime=2021-03-16T10:09:21Z › PARAMETER expected outcome: defaultOutcome › dereferencingMetadata › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:47:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionTime=2021-03-16T10:09:21Z › PARAMETER expected outcome: defaultOutcome › contentMetadata › 7.2 DID URL Dereferencing - If the dereferencing is successful, this MUST be a metadata structure, but the structure MAY be empty.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:80:19)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionTime=2021-03-16T10:09:21Z › PARAMETER expected outcome: defaultOutcome › contentMetadata › If the contentStream is a DID document, this MUST be a didDocumentMetadata structure as described in DID Resolution. › encountered a declaration exception
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:87:21)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:83:9)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:77:7)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:8:5)
at Object.didUrlDereferencingTests (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:7:3)
at forEach (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:19:46)
at Array.forEach (<anonymous>)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:17:35)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:15:7)
at forEach (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:12:5)
at Array.forEach (<anonymous>)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:11:36)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:10:1)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionTime=2021-03-16T10:09:21Z › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.
TypeError: expect(...).toBeMediaType is not a function
101 | if (dereferenceOptions.hasOwnProperty('accept')) {
102 | it('7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.', async () => {
> 103 | expect(dereferenceOptions['accept']).toBeMediaType();
| ^
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
106 | expect(dereferenceOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:103:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionTime=2021-03-16T10:09:21Z › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 106 | expect(dereferenceOptions['accept']).toBeAsciiString();
| ^
107 | });
108 | }
109 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:106:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionTime=2021-03-16T10:09:21Z › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Metadata › contentType › 7.2.2 DID URL Dereferencing Metadata - The Media Type value MUST be expressed as an ASCII string.
TypeError: expect(...).toBeMediaType is not a function
113 | if (dereferencingMetadata.hasOwnProperty('contentType')) {
114 | it('7.2.2 DID URL Dereferencing Metadata - The Media Type value MUST be expressed as an ASCII string.', async () => {
> 115 | expect(dereferencingMetadata['contentType']).toBeMediaType();
| ^
116 | expect(dereferencingMetadata['contentType']).toBeAsciiString();
117 | });
118 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:115:60)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia › PARAMETER expected outcome: defaultOutcome › didUrl › 3.1 DID Syntax - All DID URLs MUST conform to the DID URL Syntax ABNF Rules.
TypeError: expect(...).toBeValidDidUrl is not a function
11 | 'ABNF Rules.', async () => {
12 | if(! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 13 | expect(didUrl).toBeValidDidUrl();
| ^
14 | }
15 | });
16 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:13:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia › PARAMETER expected outcome: defaultOutcome › didUrl › 7.2 DID URL Dereferencing - A conformant DID URL as a single string.
TypeError: expect(...).toBeValidDidUrl is not a function
18 | it('7.2 DID URL Dereferencing - A conformant DID URL as a single string.', async() => {
19 | if (! dereferencingMetadata.hasOwnProperty('error') || dereferencingMetadata['error'] !== 'invalidDidUrl') {
> 20 | expect(didUrl).toBeValidDidUrl();
| ^
21 | }
22 | });
23 | it('7.2 DID URL Dereferencing - To dereference a DID fragment, the complete DID URL including the DID fragment MUST be used.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:20:28)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia › PARAMETER expected outcome: defaultOutcome › dereferencingOptions › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:39:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia › PARAMETER expected outcome: defaultOutcome › dereferencingMetadata › 7.2 DID URL Dereferencing - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:47:17)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia › PARAMETER expected outcome: defaultOutcome › contentMetadata › 7.2 DID URL Dereferencing - If the dereferencing is successful, this MUST be a metadata structure, but the structure MAY be empty.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:80:19)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia › PARAMETER expected outcome: defaultOutcome › contentMetadata › If the contentStream is a DID document, this MUST be a didDocumentMetadata structure as described in DID Resolution. › encountered a declaration exception
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:87:21)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:83:9)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:77:7)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:8:5)
at Object.didUrlDereferencingTests (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:7:3)
at forEach (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:19:46)
at Array.forEach (<anonymous>)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:17:35)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:15:7)
at forEach (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:12:5)
at Array.forEach (<anonymous>)
at Suite.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:11:36)
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.spec.js:10:1)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.
TypeError: expect(...).toBeMediaType is not a function
101 | if (dereferenceOptions.hasOwnProperty('accept')) {
102 | it('7.2.1 DID URL Dereferencing Options - The Media Type that the caller prefers for contentStream.', async () => {
> 103 | expect(dereferenceOptions['accept']).toBeMediaType();
| ^
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
106 | expect(dereferenceOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:103:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Options › accept › 7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
104 | });
105 | it('7.2.1 DID URL Dereferencing Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 106 | expect(dereferenceOptions['accept']).toBeAsciiString();
| ^
107 | });
108 | }
109 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:106:54)
● suites/did-url-dereferencing › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.2.x DID URL Dereferencing - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia › PARAMETER expected outcome: defaultOutcome › DID URL Dereferencing Metadata › contentType › 7.2.2 DID URL Dereferencing Metadata - The Media Type value MUST be expressed as an ASCII string.
TypeError: expect(...).toBeMediaType is not a function
113 | if (dereferencingMetadata.hasOwnProperty('contentType')) {
114 | it('7.2.2 DID URL Dereferencing Metadata - The Media Type value MUST be expressed as an ASCII string.', async () => {
> 115 | expect(dereferencingMetadata['contentType']).toBeMediaType();
| ^
116 | expect(dereferencingMetadata['contentType']).toBeAsciiString();
117 | });
118 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-url-dereferencing/did-url-dereferencing.js:115:60)
FAIL packages/did-core-test-server/suites/did-consumption/did-consumption.spec.js
● 6.x Consumption - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 6.3.2 JSON-LD Consumption › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › 6.3.2 JSON-LD Consumption - The DID document and any DID document data structures expressed by a JSON-LD representation MUST be deserialized into the data model according to the JSON representation consumption rules as defined in § 6.2 JSON.
expect(received).toEqual(expected) // deep equality
- Expected - 26
+ Received + 13
Object {
- "@context": Array [
- "https://www.w3.org/ns/did/v1",
- "https://w3id.org/security/v1",
- ],
+ "@context": "https://www.w3.org/ns/did/v1",
"assertionMethod": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"authentication": Array [
- "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"capabilityDelegation": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"capabilityInvocation": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
- "controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "created": "2021-05-17T09:21:38.612Z",
"id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
"keyAgreement": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
- },
- ],
- "service": Array [
- Object {
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#vcs",
- "serviceEndpoint": "https://service.example.com/vc",
- "type": "VerifiableCredentialService",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"verificationMethod": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
}
12 | 'representation consumption rules as defined in § 6.2 JSON.', async () => {
13 | const consumedDidDocument = JSON.parse(representation);
> 14 | expect(didDocument).toEqual(consumedDidDocument);
| ^
15 | });
16 | }
17 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-consumption/did-jsonld-consumption.js:14:27)
● 6.x Consumption - did:vaa - DID IS Test Suite - CAICT › IMPLEMENTATION ::DID IS Test Suite:: › 6.3.2 JSON-LD Consumption › did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ › 6.3.2 JSON-LD Consumption - The DID document and any DID document data structures expressed by a JSON-LD representation MUST be deserialized into the data model according to the JSON representation consumption rules as defined in § 6.2 JSON.
expect(received).toEqual(expected) // deep equality
- Expected - 13
+ Received + 7
@@ -1,20 +1,15 @@
Object {
- "@context": "https://www.w3.org/2019/did/v1",
- "controllor": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC",
- "created": "2020-11-25T18:23:33Z",
- "id": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC",
- "proof": Object {
- "created": "2020-11-25T18:23:33Z",
- "signatureValue": "Tov28noNERDLNfvY1QHnS4zUYXJjLy1oiXXYb533wkq77rfdzy77/vRfBKVAt7iNY1GjpL5tytZpmPjYFLDFwz6SOdlsuCrKTM8sIGLybRS12EOWZl7PAfdYPwknpG4aK7Zmvc7u9ORN9o+YLTK3rP9H4GyJpYWUScy3S3YZU6A=",
- "type": "RsaSignature2018",
- "verificationMethod": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#key1",
- },
+ "@context": Array [
+ "https://www.w3.org/ns/did/v1",
+ ],
+ "controllor": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ",
+ "id": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ",
"publicKey": Array [
Object {
- "controller": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC",
- "id": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#key1",
+ "controller": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ",
+ "id": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ#key1",
"publicKeyPem": "-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDb/A4iQ0Lq6NU9Q3i91vbqZ8jh
Uj/Hr64683e9NvNkFBeFePp7wfuZJRSTMrllP5LEQwXPmeZzQBJjKkY34iQV7EXA
ARKMisvqUR/ucU1mj7ZCiFM+MNCcxn+eD1WfBsXMYfne/BPJPhIUfjjIzBaTQuhI
tLhGD6WrDv6fovK/GQIDAQAB
@@ -28,7 +23,6 @@
"id": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#resolver",
"serviceEndpoint": "https://www.citln.cn",
"type": "DIDResolve",
},
],
- "updated": "2020-11-25T18:23:33Z",
}
12 | 'representation consumption rules as defined in § 6.2 JSON.', async () => {
13 | const consumedDidDocument = JSON.parse(representation);
> 14 | expect(didDocument).toEqual(consumedDidDocument);
| ^
15 | });
16 | }
17 |
at Object.<anonymous> (packages/did-core-test-server/suites/did-consumption/did-jsonld-consumption.js:14:27)
FAIL packages/did-core-test-server/suites/did-production/did-production.spec.js
● suites/did-production › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 6.1 Production › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+json › 6.1 Production and Consumption - A conforming producer MUST serialize all entries in the DID document data model, and the representation-specific entries map, that do not have explicit processing rules for the representation being produced using only the representation's data type processing rules and return the serialization after the production process completes.
expect(received).toEqual(expected) // deep equality
- Expected - 26
+ Received + 12
Object {
- "@context": Array [
- "https://www.w3.org/ns/did/v1",
- "https://w3id.org/security/v1",
- ],
"assertionMethod": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"authentication": Array [
- "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"capabilityDelegation": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"capabilityInvocation": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
- "controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "created": "2021-05-17T09:21:38.612Z",
"id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
"keyAgreement": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
- },
- ],
- "service": Array [
- Object {
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#vcs",
- "serviceEndpoint": "https://service.example.com/vc",
- "type": "VerifiableCredentialService",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"verificationMethod": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
}
28 | const dataModel = {...dmRse, ...dmProperties};
29 | const parsedDataModel = JSON.parse(representation);
> 30 | expect(dataModel).toEqual(parsedDataModel);
| ^
31 | } else {
32 | throw new Error('Unknown producer for content-type: '+ contentType);
33 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-production/did-producer.js:30:29)
● suites/did-production › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 6.1 Production › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+ld+json › 6.1 Production and Consumption - A conforming producer MUST serialize all entries in the DID document data model, and the representation-specific entries map, that do not have explicit processing rules for the representation being produced using only the representation's data type processing rules and return the serialization after the production process completes.
expect(received).toEqual(expected) // deep equality
- Expected - 26
+ Received + 13
Object {
- "@context": Array [
- "https://www.w3.org/ns/did/v1",
- "https://w3id.org/security/v1",
- ],
+ "@context": "https://www.w3.org/ns/did/v1",
"assertionMethod": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"authentication": Array [
- "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"capabilityDelegation": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"capabilityInvocation": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
- "controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "created": "2021-05-17T09:21:38.612Z",
"id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
"keyAgreement": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
- },
- ],
- "service": Array [
- Object {
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#vcs",
- "serviceEndpoint": "https://service.example.com/vc",
- "type": "VerifiableCredentialService",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
"verificationMethod": Array [
Object {
"controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7",
- "type": "EcdsaSecp256k1VerificationKey2019",
+ "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1",
+ "type": "EcdsaSecp256k1Signature2019",
},
],
}
28 | const dataModel = {...dmRse, ...dmProperties};
29 | const parsedDataModel = JSON.parse(representation);
> 30 | expect(dataModel).toEqual(parsedDataModel);
| ^
31 | } else {
32 | throw new Error('Unknown producer for content-type: '+ contentType);
33 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-production/did-producer.js:30:29)
● suites/did-production › IMPLEMENTATION ::DID IS Test Suite:: › 6.1 Production › did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ › application/did+ld+json › 6.1 Production and Consumption - A conforming producer MUST serialize all entries in the DID document data model, and the representation-specific entries map, that do not have explicit processing rules for the representation being produced using only the representation's data type processing rules and return the serialization after the production process completes.
expect(received).toEqual(expected) // deep equality
- Expected - 13
+ Received + 7
@@ -1,20 +1,15 @@
Object {
- "@context": "https://www.w3.org/2019/did/v1",
- "controllor": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC",
- "created": "2020-11-25T18:23:33Z",
- "id": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC",
- "proof": Object {
- "created": "2020-11-25T18:23:33Z",
- "signatureValue": "Tov28noNERDLNfvY1QHnS4zUYXJjLy1oiXXYb533wkq77rfdzy77/vRfBKVAt7iNY1GjpL5tytZpmPjYFLDFwz6SOdlsuCrKTM8sIGLybRS12EOWZl7PAfdYPwknpG4aK7Zmvc7u9ORN9o+YLTK3rP9H4GyJpYWUScy3S3YZU6A=",
- "type": "RsaSignature2018",
- "verificationMethod": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#key1",
- },
+ "@context": Array [
+ "https://www.w3.org/ns/did/v1",
+ ],
+ "controllor": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ",
+ "id": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ",
"publicKey": Array [
Object {
- "controller": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC",
- "id": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#key1",
+ "controller": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ",
+ "id": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ#key1",
"publicKeyPem": "-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDb/A4iQ0Lq6NU9Q3i91vbqZ8jh
Uj/Hr64683e9NvNkFBeFePp7wfuZJRSTMrllP5LEQwXPmeZzQBJjKkY34iQV7EXA
ARKMisvqUR/ucU1mj7ZCiFM+MNCcxn+eD1WfBsXMYfne/BPJPhIUfjjIzBaTQuhI
tLhGD6WrDv6fovK/GQIDAQAB
@@ -28,7 +23,6 @@
"id": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#resolver",
"serviceEndpoint": "https://www.citln.cn",
"type": "DIDResolve",
},
],
- "updated": "2020-11-25T18:23:33Z",
}
28 | const dataModel = {...dmRse, ...dmProperties};
29 | const parsedDataModel = JSON.parse(representation);
> 30 | expect(dataModel).toEqual(parsedDataModel);
| ^
31 | } else {
32 | throw new Error('Unknown producer for content-type: '+ contentType);
33 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-production/did-producer.js:30:29)
FAIL packages/did-core-test-server/suites/did-core-properties/did-core-properties.spec.js
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.3.3 Key Agreement - The keyAgreement property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
201 | if(typeof vm === 'string') {
202 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 203 | expect(absoluteURL).toBeValidDidUrl();
| ^
204 | } else {
205 | expect(isValidVerificationMethod(vm)).toBe(true);
206 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:203:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:200:21)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.3.4 Capability Invocation - The capabilityInvocation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
215 | if(typeof vm === 'string') {
216 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 217 | expect(absoluteURL).toBeValidDidUrl();
| ^
218 | } else {
219 | expect(isValidVerificationMethod(vm)).toBe(true);
220 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:217:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:214:29)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 5.3.5 Capability Delegation - The capabilityDelegation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
229 | if(typeof vm === 'string') {
230 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 231 | expect(absoluteURL).toBeValidDidUrl();
| ^
232 | } else {
233 | expect(isValidVerificationMethod(vm)).toBe(true);
234 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:231:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:228:29)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.3.3 Key Agreement - The keyAgreement property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
201 | if(typeof vm === 'string') {
202 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 203 | expect(absoluteURL).toBeValidDidUrl();
| ^
204 | } else {
205 | expect(isValidVerificationMethod(vm)).toBe(true);
206 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:203:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:200:21)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.3.4 Capability Invocation - The capabilityInvocation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
215 | if(typeof vm === 'string') {
216 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 217 | expect(absoluteURL).toBeValidDidUrl();
| ^
218 | } else {
219 | expect(isValidVerificationMethod(vm)).toBe(true);
220 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:217:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:214:29)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 5.3.5 Capability Delegation - The capabilityDelegation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
229 | if(typeof vm === 'string') {
230 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 231 | expect(absoluteURL).toBeValidDidUrl();
| ^
232 | } else {
233 | expect(isValidVerificationMethod(vm)).toBe(true);
234 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:231:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:228:29)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 7.3 Metadata Structure - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 7.3 Metadata Structure - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 7.3 Metadata Structure - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 7.3 Metadata Structure - did:example - DID Test Suite - DID Working Group › did:example:123 › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 7.3 Metadata Structure - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 7.3 Metadata Structure - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 7.3 Metadata Structure - did:is - DID IS Test Suite - Blockcore › did:is:PMW1Ks7h4brpN8FdDVLwhPDKJ7LdA7mVdd › application/did+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.3.4 Capability Invocation - The capabilityInvocation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
215 | if(typeof vm === 'string') {
216 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 217 | expect(absoluteURL).toBeValidDidUrl();
| ^
218 | } else {
219 | expect(isValidVerificationMethod(vm)).toBe(true);
220 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:217:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:214:29)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.3.5 Capability Delegation - The capabilityDelegation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
229 | if(typeof vm === 'string') {
230 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 231 | expect(absoluteURL).toBeValidDidUrl();
| ^
232 | } else {
233 | expect(isValidVerificationMethod(vm)).toBe(true);
234 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:231:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:228:29)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2018 cryptosuite):: › 7.3 Metadata Structure - did:key - did-method-key-js (2018 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.2 Verification Methods - The publicKeyMultibase property is OPTIONAL. This feature is non-normative. If present, the value MUST be astring representation of a [MULTIBASE] encoded public key.
TypeError: expect(...).toBeMultibaseString is not a function
104 | const {publicKeyMultibase} = vm;
105 | if(publicKeyMultibase) {
> 106 | expect(publicKeyMultibase).toBeMultibaseString();
| ^
107 | }
108 | });
109 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:106:38)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:103:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.3.4 Capability Invocation - The capabilityInvocation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
215 | if(typeof vm === 'string') {
216 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 217 | expect(absoluteURL).toBeValidDidUrl();
| ^
218 | } else {
219 | expect(isValidVerificationMethod(vm)).toBe(true);
220 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:217:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:214:29)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 5.x Core Properties - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 5.3.5 Capability Delegation - The capabilityDelegation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
229 | if(typeof vm === 'string') {
230 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 231 | expect(absoluteURL).toBeValidDidUrl();
| ^
232 | } else {
233 | expect(isValidVerificationMethod(vm)).toBe(true);
234 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:231:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:228:29)
● suites/did-core-properties › IMPLEMENTATION ::did-method-key-js (2020 cryptosuite):: › 7.3 Metadata Structure - did:key - did-method-key-js (2020 cryptosuite) - Digital Bazaar › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 5.x Core Properties - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.3 Metadata Structure - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.3 Metadata Structure - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.3 Metadata Structure - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.3 Metadata Structure - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.3 Metadata Structure - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.3 Metadata Structure - did:3 - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › application/did+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 5.x Core Properties - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 7.3 Metadata Structure - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 7.3 Metadata Structure - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 7.3 Metadata Structure - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 7.3 Metadata Structure - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 7.3 Metadata Structure - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::ethr-did-resolver:: › 7.3 Metadata Structure - did:ethr - ethr-did-resolver - ConsenSys Mesh › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › application/did+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 5.x Core Properties - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+ld+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 7.3 Metadata Structure - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 7.3 Metadata Structure - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 7.3 Metadata Structure - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Test Suite:: › 7.3 Metadata Structure - did:trust - DID Test Suite - TrustCerts GmbH › did:trust:tc:dev:id:GvMM3dpmWH6mRhGK88Ykdh › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::did-veres-one (2021):: › 5.x Core Properties - did:v1 - did-veres-one (2021) - Veres One Foundation › did:v1:nym:z6Mks6XhVxGqMw4v4Y7a4MvhTypUkNMGt2SMGCVPpAS4bqp4 › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::did-veres-one (2021):: › 5.x Core Properties - did:v1 - did-veres-one (2021) - Veres One Foundation › did:v1:nym:z6Mks6XhVxGqMw4v4Y7a4MvhTypUkNMGt2SMGCVPpAS4bqp4 › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::did-veres-one (2021):: › 5.x Core Properties - did:v1 - did-veres-one (2021) - Veres One Foundation › did:v1:nym:z6Mks6XhVxGqMw4v4Y7a4MvhTypUkNMGt2SMGCVPpAS4bqp4 › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::did-veres-one (2021):: › 5.x Core Properties - did:v1 - did-veres-one (2021) - Veres One Foundation › did:v1:nym:z6Mks6XhVxGqMw4v4Y7a4MvhTypUkNMGt2SMGCVPpAS4bqp4 › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::did-veres-one (2021):: › 5.x Core Properties - did:v1 - did-veres-one (2021) - Veres One Foundation › did:v1:nym:z6Mks6XhVxGqMw4v4Y7a4MvhTypUkNMGt2SMGCVPpAS4bqp4 › application/did+ld+json › 5.2 Verification Methods - The publicKeyMultibase property is OPTIONAL. This feature is non-normative. If present, the value MUST be astring representation of a [MULTIBASE] encoded public key.
TypeError: expect(...).toBeMultibaseString is not a function
104 | const {publicKeyMultibase} = vm;
105 | if(publicKeyMultibase) {
> 106 | expect(publicKeyMultibase).toBeMultibaseString();
| ^
107 | }
108 | });
109 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:106:38)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:103:27)
● suites/did-core-properties › IMPLEMENTATION ::did-veres-one (2021):: › 7.3 Metadata Structure - did:v1 - did-veres-one (2021) - Veres One Foundation › did:v1:nym:z6Mks6XhVxGqMw4v4Y7a4MvhTypUkNMGt2SMGCVPpAS4bqp4 › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.3.3 Key Agreement - The keyAgreement property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
201 | if(typeof vm === 'string') {
202 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 203 | expect(absoluteURL).toBeValidDidUrl();
| ^
204 | } else {
205 | expect(isValidVerificationMethod(vm)).toBe(true);
206 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:203:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:200:21)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.3.4 Capability Invocation - The capabilityInvocation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
215 | if(typeof vm === 'string') {
216 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 217 | expect(absoluteURL).toBeValidDidUrl();
| ^
218 | } else {
219 | expect(isValidVerificationMethod(vm)).toBe(true);
220 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:217:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:214:29)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 5.x Core Properties - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 5.3.5 Capability Delegation - The capabilityDelegation property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
229 | if(typeof vm === 'string') {
230 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 231 | expect(absoluteURL).toBeValidDidUrl();
| ^
232 | } else {
233 | expect(isValidVerificationMethod(vm)).toBe(true);
234 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:231:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:228:29)
● suites/did-core-properties › IMPLEMENTATION ::did-method-monid (2021 lx tech):: › 7.3 Metadata Structure - did:monid - did-method-monid (2021 lx tech) - Min Ju › did:monid:1fb352353ff51248c5104b407f9c04c3666627fcf5a167d693c9fc84b75964e2 › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 5.x Core Properties - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 7.3 Metadata Structure - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 7.3 Metadata Structure - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 7.3 Metadata Structure - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 7.3 Metadata Structure - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 7.3 Metadata Structure - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 7.3 Metadata Structure - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › application/did+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:vaa - DID IS Test Suite - CAICT › did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:vaa - DID IS Test Suite - CAICT › did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:vaa - DID IS Test Suite - CAICT › did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 5.x Core Properties - did:vaa - DID IS Test Suite - CAICT › did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID IS Test Suite:: › 7.3 Metadata Structure - did:vaa - DID IS Test Suite - CAICT › did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.2 Verification Methods - The publicKeyJwk property is OPTIONAL. If present, the value MUST be a map representing a JSON Web Key that conforms to [RFC7517].
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
116 | const {publicKeyJwk} = vm;
117 | if(publicKeyJwk) {
> 118 | expect(isValidJwk(publicKeyJwk)).toBe(true);
| ^
119 | }
120 | });
121 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:118:44)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:115:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.1.1 DID Subject - The value of id MUST be a string that conforms to the rules in § 3.1 DID Syntax and MUST exist in the root map of the data model for the DID document.
TypeError: expect(...).toBeValidDid is not a function
16 | 'map of the data model for the DID document.', async () => {
17 | expect(didDocument).toHaveProperty('id');
> 18 | expect(didDocument.id).toBeValidDid();
| ^
19 | });
20 |
21 | it('5.1.2 DID Controller - The controller property is OPTIONAL. If ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:18:30)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.2 Verification Methods - The verificationMethod property is OPTIONAL. If present, the value MUST be an ordered set of verification methods, where each verification method is expressed using a map.
TypeError: expect(...).toBeArray is not a function
50 | const {verificationMethod} = didDocument;
51 | if(verificationMethod) {
> 52 | expect(verificationMethod).toBeArray();
| ^
53 | verificationMethod.forEach(verificationMethodValue => {
54 | expect(verificationMethodValue).toBeInfraMap();
55 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:52:36)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.2 Verification Methods - The value of the id property for a verification method MUST be a string that conforms to the rules in Section § 3.2 DID URL Syntax.
TypeError: expect(...).toBeValidDidUrl is not a function
75 | verificationMethods.forEach(vm => {
76 | let absoluteURL = getAbsoluteDIDURL(didDocument.id,vm.id);
> 77 | expect(absoluteURL).toBeValidDidUrl();
| ^
78 | });
79 | });
80 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:77:29)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:75:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.2 Verification Methods - The value of the type property MUST be a string that references exactly one verification method type.
TypeError: expect(...).toBeInfraString is not a function
84 | const verificationMethods = getAllVerificationMethods(didDocument);
85 | verificationMethods.forEach(vm => {
> 86 | expect(vm.type).toBeInfraString();
| ^
87 | });
88 | });
89 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:86:25)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:85:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.2 Verification Methods - The value of the controller property MUST be a string that conforms to the rules in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
93 | const verificationMethods = getAllVerificationMethods(didDocument);
94 | verificationMethods.forEach(vm => {
> 95 | expect(vm.controller).toBeValidDid();
| ^
96 | });
97 | });
98 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:95:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:94:27)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.3.1 Authentication - The authentication property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
173 | if(typeof vm === 'string') {
174 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 175 | expect(absoluteURL).toBeValidDidUrl();
| ^
176 | } else {
177 | expect(isValidVerificationMethod(vm)).toBe(true);
178 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:175:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:172:23)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.3.2 Assertion - The assertionMethod property is OPTIONAL. If present, the associated value MUST be an ordered set of one or more verification methods.
TypeError: expect(...).toBeValidDidUrl is not a function
187 | if(typeof vm === 'string') {
188 | let absoluteURL = getAbsoluteDIDURL(didDocument.id, vm);
> 189 | expect(absoluteURL).toBeValidDidUrl();
| ^
190 | } else {
191 | expect(isValidVerificationMethod(vm)).toBe(true);
192 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:189:31)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:186:24)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.4 Services - The service property is OPTIONAL. If present, the associated value MUST be an ordered set of services, where each service is described by a map.
TypeError: expect(...).toBeInfraMap is not a function
243 | expect(Array.isArray(service)).toBe(true);
244 | service.forEach(serviceValue => {
> 245 | expect(serviceValue).toBeInfraMap();
| ^
246 | });
247 | }
248 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:245:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:244:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.4 Services - The value of the id property MUST be a URI conforming to [RFC3986].
TypeError: expect(...).toBeValidUri is not a function
265 | if(service) {
266 | service.forEach(serviceValue => {
> 267 | expect(serviceValue.id).toBeValidUri();
| ^
268 | });
269 | }
270 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:267:35)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:266:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 5.4 Services - All [serviceEndpoint] string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification.
TypeError: expect(...).toBeValidUri is not a function
354 | const {serviceEndpoint} = serviceValue;
355 | if(typeof serviceEndpoint === 'string') {
> 356 | expect(serviceEndpoint).toBeValidUri();
| ^
357 | }
358 | });
359 | }
at forEach (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:356:37)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:353:17)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 7.3 Metadata Structure - The structure used to communicate this metadata MUST be a map of properties.
TypeError: expect(...).toBeInfraMap is not a function
8 | it('7.3 Metadata Structure - ' +
9 | 'The structure used to communicate this metadata MUST be a map of properties.', () => {
> 10 | expect(didDocumentMetadata).toBeInfraMap();
| ^
11 | });
12 |
13 | it('7.3 Metadata Structure - ' +
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:10:57)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 7.3 Metadata Structure - Each property name MUST be a string.
TypeError: expect(...).toBeString is not a function
14 | 'Each property name MUST be a string.', () => {
15 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 16 | expect(property_name).toBeString();
| ^
17 | });
18 | });
19 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:16:51)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:15:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 7.3 Metadata Structure - Each property value MUST be a string, map, list, ordered set, boolean, or null.
TypeError: expect(...).toBeDidDocumentPropertyValueType is not a function
21 | 'Each property value MUST be a string, map, list, ordered set, boolean, or null.', () => {
22 | Object.keys(didDocumentMetadata).forEach((property_name) => {
> 23 | expect(didDocumentMetadata[property_name]).toBeDidDocumentPropertyValueType();
| ^
24 | });
25 | });
26 |
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:23:72)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:22:58)
● suites/did-core-properties › IMPLEMENTATION ::DID Orb Test Suite:: › 7.3 Metadata Structure - did:orb - DID Orb Test Suite - SecureKey › did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3NlcyI6WyJhdXRoZW50aWNhdGlvbiJdLCJ0eXBlIjoiSnNvbldlYktleTIwMjAifSx7ImlkIjoiYXV0aCIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJFZDI1NTE5Iiwia3R5IjoiT0tQIiwieCI6IjEzNkZDRjJTSEZNMUZ6aWlJYXJwNEI1RzkxUVNnNHB1dGFhSWg1VEdXREEiLCJ5IjoiIn0sInB1cnBvc2VzIjpbImFzc2VydGlvbk1ldGhvZCJdLCJ0eXBlIjoiRWQyNTUxOVZlcmlmaWNhdGlvbktleTIwMTgifV19LHsiYWN0aW9uIjoiYWRkLXNlcnZpY2VzIiwic2VydmljZXMiOlt7ImlkIjoiZGlkY29tbSIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIjZLWjZLQkZLZDQ3d3FEMlhnelJwTDZ0RGlxQkNnQzg1eEttbzhVRHExZjVSIl0sInJvdXRpbmdLZXlzIjpbIjhrNUY0bXVQN0s3NmVtZHdQNWlDOHJlRVlWb1NiWmdMM2FudmFXOTdUTm1yIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vaHViLmV4YW1wbGUuY29tLy5pZGVudGl0eS9kaWQ6ZXhhbXBsZTowMTIzNDU2Nzg5YWJjZGVmLyIsInR5cGUiOiJkaWQtY29tbXVuaWNhdGlvbiJ9XX1dLCJ1cGRhdGVDb21taXRtZW50IjoiRWlEVXVaSFEwOENXRGVBTmJyc3VSeHh3M2V5bXNucFdNbzJ0TXQ3QUNlUUNIUSJ9LCJzdWZmaXhEYXRhIjp7ImFuY2hvck9yaWdpbiI6Imh0dHBzOi8vb3JiLmRvbWFpbjEuY29tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 › application/did+ld+json › 7.3 Metadata Structure - The values within any complex data structures such as maps and lists MUST be one of these data types as well.
TypeError: expect(...).toBeDidDocumentMap is not a function
30 | Object.keys(didDocumentMetadata).forEach((property_name) => {
31 | if (typeof didDocumentMetadata[property_name] == "object") {
> 32 | expect(didDocumentMetadata[property_name]).toBeDidDocumentMap();
| ^
33 | }
34 | });
35 | });
at forEach (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:32:80)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-core-properties/did-metadata-structure.js:30:62)
FAIL packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didDocument › 7.1 DID Resolution - If the resolution is successful, and if the resolve function was called, this MUST be a DID document abstract data model (a map) as described in § 4. Data Model that is capable of being transformed into a conforming DID Document (representation), using the production rules specified by the representation.
TypeError: expect(...).toBeInfraMap is not a function
65 | const expectConformantDidDocument = ((didDocument) => {
66 | // TODO: improve this by re-using other test code
> 67 | expect(didDocument).toBeInfraMap();
| ^
68 | expect(Object.keys(didDocument)).toContain('id');
69 | });
70 |
at Object.expectConformantDidDocument (packages/did-core-test-server/suites/resolution-utils.js:67:23)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:51:21)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › created › 7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.
TypeError: expect(...).toBeDidCoreDatetime is not a function
185 | if (didDocumentMetadata.hasOwnProperty('created')) {
186 | it('7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.', async () => {
> 187 | expect(didDocumentMetadata['created']).toBeDidCoreDatetime();
| ^
188 | });
189 | }
190 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:187:48)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.
TypeError: expect(...).toBeDidCoreDatetime is not a function
192 | if (didDocumentMetadata.hasOwnProperty('updated')) {
193 | it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
> 194 | expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
| ^
195 | });
196 | if (didDocumentMetadata.hasOwnProperty('created')) {
197 | it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:194:48)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › versionId › 7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
236 | if (didDocumentMetadata.hasOwnProperty('versionId')) {
237 | it('7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.', async () => {
> 238 | expect(didDocumentMetadata['versionId']).toBeAsciiString();
| ^
239 | });
240 | }
241 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:238:50)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › created › 7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.
TypeError: expect(...).toBeDidCoreDatetime is not a function
185 | if (didDocumentMetadata.hasOwnProperty('created')) {
186 | it('7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.', async () => {
> 187 | expect(didDocumentMetadata['created']).toBeDidCoreDatetime();
| ^
188 | });
189 | }
190 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:187:48)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.
TypeError: expect(...).toBeDidCoreDatetime is not a function
192 | if (didDocumentMetadata.hasOwnProperty('updated')) {
193 | it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
> 194 | expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
| ^
195 | });
196 | if (didDocumentMetadata.hasOwnProperty('created')) {
197 | it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:194:48)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › versionId › 7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
236 | if (didDocumentMetadata.hasOwnProperty('versionId')) {
237 | it('7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.', async () => {
> 238 | expect(didDocumentMetadata['versionId']).toBeAsciiString();
| ^
239 | });
240 | }
241 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:238:50)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › created › 7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.
TypeError: expect(...).toBeDidCoreDatetime is not a function
185 | if (didDocumentMetadata.hasOwnProperty('created')) {
186 | it('7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.', async () => {
> 187 | expect(didDocumentMetadata['created']).toBeDidCoreDatetime();
| ^
188 | });
189 | }
190 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:187:48)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.
TypeError: expect(...).toBeDidCoreDatetime is not a function
192 | if (didDocumentMetadata.hasOwnProperty('updated')) {
193 | it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
> 194 | expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
| ^
195 | });
196 | if (didDocumentMetadata.hasOwnProperty('created')) {
197 | it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:194:48)
● suites/did-resolution › IMPLEMENTATION ::@ceramicnetwork/3id-did-resolver:: › 7.1.x DID Resolution - @ceramicnetwork/3id-did-resolver - 3Box Labs › did:3:kjzl6cwe1jw145m7jxh4jpa6iw1ps3jcjordpo81e0w04krcpz8knxvg5ygiabd › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › versionId › 7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
236 | if (didDocumentMetadata.hasOwnProperty('versionId')) {
237 | it('7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.', async () => {
> 238 | expect(didDocumentMetadata['versionId']).toBeAsciiString();
| ^
239 | });
240 | }
241 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:238:50)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:111 › PARAMETER expected outcome: defaultOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:111 › PARAMETER expected outcome: defaultOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:111 › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:111 › PARAMETER expected outcome: defaultOutcome › didDocument › 7.1 DID Resolution - If the resolution is successful, and if the resolve function was called, this MUST be a DID document abstract data model (a map) as described in § 4. Data Model that is capable of being transformed into a conforming DID Document (representation), using the production rules specified by the representation.
TypeError: expect(...).toBeInfraMap is not a function
65 | const expectConformantDidDocument = ((didDocument) => {
66 | // TODO: improve this by re-using other test code
> 67 | expect(didDocument).toBeInfraMap();
| ^
68 | expect(Object.keys(didDocument)).toContain('id');
69 | });
70 |
at Object.expectConformantDidDocument (packages/did-core-test-server/suites/resolution-utils.js:67:23)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:51:21)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:111 › PARAMETER expected outcome: defaultOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:111 › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › equivalentId › 7.1.3 DID Document Metadata - The value of equivalentId MUST be a set where each item in the list is a string that conforms to the rules in Section § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
257 | expect(Array.isArray(didDocumentMetadata['equivalentId'])).toBe(true);
258 | didDocumentMetadata['equivalentId'].forEach((equivalentId) => {
> 259 | expect(equivalentId).toBeValidDid();
| ^
260 | })
261 | });
262 | it('7.1.3 DID Document Metadata - Each equivalentId DID value MUST be produced by, and a form of, the same DID Method as the id property value.', async () => {
at forEach (packages/did-core-test-server/suites/did-resolution/did-resolution.js:259:32)
at Array.forEach (<anonymous>)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:258:45)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:111 › PARAMETER expected outcome: defaultOutcome › DID Document Metadata › canonicalId › 7.1.3 DID Document Metadata - The value of canonicalId MUST be a string that conforms to the rules in Section § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
277 | it('7.1.3 DID Document Metadata - The value of canonicalId MUST be a string that conforms to the rules in Section § 3.1 DID Syntax.', async () => {
278 | const canonicalId = didDocumentMetadata['canonicalId'];
> 279 | expect(canonicalId).toBeValidDid();
| ^
280 | });
281 | it('7.1.3 DID Document Metadata - A canonicalId value MUST be produced by, and a form of, the same DID Method as the id property value.', async () => {
282 | if (didDocument) {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:279:29)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example_222 › PARAMETER expected outcome: invalidDidErrorOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example_222 › PARAMETER expected outcome: invalidDidErrorOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example_222 › PARAMETER expected outcome: invalidDidErrorOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is unsuccessful, this output MUST be an empty metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:95:19)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example_222 › PARAMETER expected outcome: invalidDidErrorOutcome › DID Resolution Metadata › error › 7.1.2 DID Resolution Metadata - The value of this property MUST be a single keyword ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
150 | if (didResolutionMetadata.hasOwnProperty('error')) {
151 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be a single keyword ASCII string.', async () => {
> 152 | expect(didResolutionMetadata['error']).toBeAsciiString();
| ^
153 | expect(didResolutionMetadata['error']).not.toMatch('\\s');
154 | });
155 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:152:54)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example_222 › PARAMETER expected outcome: invalidDidErrorOutcome › DID Resolution Metadata › error › 7.1.2 DID Resolution Metadata - invalidDid - The DID supplied to the DID resolution function does not conform to valid syntax.
TypeError: expect(...).not.toBeValidDid is not a function
157 | it('7.1.2 DID Resolution Metadata - invalidDid - The DID supplied to the DID resolution function does not conform to valid syntax.', async () => {
158 | expect(didResolutionMetadata['error']).toBe('invalidDid');
> 159 | expect(did).not.toBeValidDid();
| ^
160 | expect(didDocument).toBeFalsy();
161 | });
162 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:159:31)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:333 › PARAMETER expected outcome: notFoundErrorOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:333 › PARAMETER expected outcome: notFoundErrorOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:333 › PARAMETER expected outcome: notFoundErrorOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:333 › PARAMETER expected outcome: notFoundErrorOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is unsuccessful, this output MUST be an empty metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:95:19)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:333 › PARAMETER expected outcome: notFoundErrorOutcome › DID Resolution Metadata › error › 7.1.2 DID Resolution Metadata - The value of this property MUST be a single keyword ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
150 | if (didResolutionMetadata.hasOwnProperty('error')) {
151 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be a single keyword ASCII string.', async () => {
> 152 | expect(didResolutionMetadata['error']).toBeAsciiString();
| ^
153 | expect(didResolutionMetadata['error']).not.toMatch('\\s');
154 | });
155 | }
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:152:54)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:444 › PARAMETER expected outcome: deactivatedOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:444 › PARAMETER expected outcome: deactivatedOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:444 › PARAMETER expected outcome: deactivatedOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:444 › PARAMETER expected outcome: deactivatedOutcome › didDocument › 7.1 DID Resolution - If the resolution is successful, and if the resolve function was called, this MUST be a DID document abstract data model (a map) as described in § 4. Data Model that is capable of being transformed into a conforming DID Document (representation), using the production rules specified by the representation.
TypeError: expect(...).toBeInfraMap is not a function
65 | const expectConformantDidDocument = ((didDocument) => {
66 | // TODO: improve this by re-using other test code
> 67 | expect(didDocument).toBeInfraMap();
| ^
68 | expect(Object.keys(didDocument)).toContain('id');
69 | });
70 |
at Object.expectConformantDidDocument (packages/did-core-test-server/suites/resolution-utils.js:67:23)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:51:21)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:444 › PARAMETER expected outcome: deactivatedOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:555 › PARAMETER expected outcome: defaultOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:555 › PARAMETER expected outcome: defaultOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:555 › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:555 › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:555 › PARAMETER expected outcome: defaultOutcome › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:555 › PARAMETER expected outcome: defaultOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:555 › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:555 › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:555 › PARAMETER expected outcome: defaultOutcome › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:666 › PARAMETER expected outcome: defaultOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:666 › PARAMETER expected outcome: defaultOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:666 › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:666 › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:666 › PARAMETER expected outcome: defaultOutcome › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:666 › PARAMETER expected outcome: defaultOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:666 › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:666 › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:666 › PARAMETER expected outcome: defaultOutcome › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:777 › PARAMETER expected outcome: defaultOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:777 › PARAMETER expected outcome: defaultOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:777 › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:777 › PARAMETER expected outcome: defaultOutcome › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:777 › PARAMETER expected outcome: defaultOutcome › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:777 › PARAMETER expected outcome: defaultOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:777 › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:777 › PARAMETER expected outcome: defaultOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Example Resolver:: › 7.1.x DID Resolution - Example Resolver - DID Working Group › did:example:777 › PARAMETER expected outcome: defaultOutcome › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:x705-jznz-q3nl-srs › PARAMETER expected outcome: deactivatedOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:x705-jznz-q3nl-srs › PARAMETER expected outcome: deactivatedOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:x705-jznz-q3nl-srs › PARAMETER expected outcome: deactivatedOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:x705-jznz-q3nl-srs › PARAMETER expected outcome: deactivatedOutcome › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:x705-jznz-q3nl-srs › PARAMETER expected outcome: deactivatedOutcome › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:x705-jznz-q3nl-srs › PARAMETER expected outcome: deactivatedOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:x705-jznz-q3nl-srs › PARAMETER expected outcome: deactivatedOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:x705-jznz-q3nl-srs › PARAMETER expected outcome: deactivatedOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:x705-jznz-q3nl-srs › PARAMETER expected outcome: deactivatedOutcome › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xkrn-xz7q-qsye-28p › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xkrn-xz7q-qsye-28p › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xkrn-xz7q-qsye-28p › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xkrn-xz7q-qsye-28p › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xkrn-xz7q-qsye-28p › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xkrn-xz7q-qsye-28p › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xkrn-xz7q-qsye-28p › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xkrn-xz7q-qsye-28p › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xkrn-xz7q-qsye-28p › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xz35-jznz-q9yu-ply › PARAMETER expected outcome: deactivatedOutcome › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xz35-jznz-q9yu-ply › PARAMETER expected outcome: deactivatedOutcome › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xz35-jznz-q9yu-ply › PARAMETER expected outcome: deactivatedOutcome › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xz35-jznz-q9yu-ply › PARAMETER expected outcome: deactivatedOutcome › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xz35-jznz-q9yu-ply › PARAMETER expected outcome: deactivatedOutcome › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xz35-jznz-q9yu-ply › PARAMETER expected outcome: deactivatedOutcome › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xz35-jznz-q9yu-ply › PARAMETER expected outcome: deactivatedOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xz35-jznz-q9yu-ply › PARAMETER expected outcome: deactivatedOutcome › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:btcr:xz35-jznz-q9yu-ply › PARAMETER expected outcome: deactivatedOutcome › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › created › 7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.
TypeError: expect(...).toBeDidCoreDatetime is not a function
185 | if (didDocumentMetadata.hasOwnProperty('created')) {
186 | it('7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.', async () => {
> 187 | expect(didDocumentMetadata['created']).toBeDidCoreDatetime();
| ^
188 | });
189 | }
190 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:187:48)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:3CzQLF3qfFVQ1CjGVzVRZaFXrjAd › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.
TypeError: expect(...).toBeDidCoreDatetime is not a function
192 | if (didDocumentMetadata.hasOwnProperty('updated')) {
193 | it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
> 194 | expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
| ^
195 | });
196 | if (didDocumentMetadata.hasOwnProperty('created')) {
197 | it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:194:48)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › created › 7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.
TypeError: expect(...).toBeDidCoreDatetime is not a function
185 | if (didDocumentMetadata.hasOwnProperty('created')) {
186 | it('7.1.3 DID Document Metadata - The value of the property MUST be a string formatted as an XML Datetime normalized to UTC 00:00:00 and without sub-second decimal precision.', async () => {
> 187 | expect(didDocumentMetadata['created']).toBeDidCoreDatetime();
| ^
188 | });
189 | }
190 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:187:48)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.
TypeError: expect(...).toBeDidCoreDatetime is not a function
192 | if (didDocumentMetadata.hasOwnProperty('updated')) {
193 | it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
> 194 | expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
| ^
195 | });
196 | if (didDocumentMetadata.hasOwnProperty('created')) {
197 | it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:194:48)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ebsi:DfPaUdYwuzcqFoiMDSrUX8aQyZnr2SesH3vDVASYv8PE › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ebsi:DfPaUdYwuzcqFoiMDSrUX8aQyZnr2SesH3vDVASYv8PE › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ebsi:DfPaUdYwuzcqFoiMDSrUX8aQyZnr2SesH3vDVASYv8PE › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ebsi:DfPaUdYwuzcqFoiMDSrUX8aQyZnr2SesH3vDVASYv8PE › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ebsi:DfPaUdYwuzcqFoiMDSrUX8aQyZnr2SesH3vDVASYv8PE › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ebsi:DfPaUdYwuzcqFoiMDSrUX8aQyZnr2SesH3vDVASYv8PE › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ebsi:DfPaUdYwuzcqFoiMDSrUX8aQyZnr2SesH3vDVASYv8PE › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ebsi:DfPaUdYwuzcqFoiMDSrUX8aQyZnr2SesH3vDVASYv8PE › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ebsi:DfPaUdYwuzcqFoiMDSrUX8aQyZnr2SesH3vDVASYv8PE › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:elem:ropsten:EiAS3mqC4OLMKOwcz3ItIL7XfWduPT7q3Fa4vHgiCfSG2A › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:elem:ropsten:EiAS3mqC4OLMKOwcz3ItIL7XfWduPT7q3Fa4vHgiCfSG2A › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:elem:ropsten:EiAS3mqC4OLMKOwcz3ItIL7XfWduPT7q3Fa4vHgiCfSG2A › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:elem:ropsten:EiAS3mqC4OLMKOwcz3ItIL7XfWduPT7q3Fa4vHgiCfSG2A › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:elem:ropsten:EiAS3mqC4OLMKOwcz3ItIL7XfWduPT7q3Fa4vHgiCfSG2A › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:elem:ropsten:EiAS3mqC4OLMKOwcz3ItIL7XfWduPT7q3Fa4vHgiCfSG2A › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:elem:ropsten:EiAS3mqC4OLMKOwcz3ItIL7XfWduPT7q3Fa4vHgiCfSG2A › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:elem:ropsten:EiAS3mqC4OLMKOwcz3ItIL7XfWduPT7q3Fa4vHgiCfSG2A › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:elem:ropsten:EiAS3mqC4OLMKOwcz3ItIL7XfWduPT7q3Fa4vHgiCfSG2A › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.
TypeError: expect(...).toBeDidCoreDatetime is not a function
192 | if (didDocumentMetadata.hasOwnProperty('updated')) {
193 | it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
> 194 | expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
| ^
195 | });
196 | if (didDocumentMetadata.hasOwnProperty('created')) {
197 | it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:194:48)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388 › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › versionId › 7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
236 | if (didDocumentMetadata.hasOwnProperty('versionId')) {
237 | it('7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.', async () => {
> 238 | expect(didDocumentMetadata['versionId']).toBeAsciiString();
| ^
239 | });
240 | }
241 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:238:50)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.
TypeError: expect(...).toBeDidCoreDatetime is not a function
192 | if (didDocumentMetadata.hasOwnProperty('updated')) {
193 | it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
> 194 | expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
| ^
195 | });
196 | if (didDocumentMetadata.hasOwnProperty('created')) {
197 | it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:194:48)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › versionId › 7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
236 | if (didDocumentMetadata.hasOwnProperty('versionId')) {
237 | it('7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.', async () => {
> 238 | expect(didDocumentMetadata['versionId']).toBeAsciiString();
| ^
239 | });
240 | }
241 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:238:50)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › updated › 7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.
TypeError: expect(...).toBeDidCoreDatetime is not a function
192 | if (didDocumentMetadata.hasOwnProperty('updated')) {
193 | it('7.1.3 DID Document Metadata - The value of the property MUST follow the same formatting rules as the created property.', async () => {
> 194 | expect(didDocumentMetadata['updated']).toBeDidCoreDatetime();
| ^
195 | });
196 | if (didDocumentMetadata.hasOwnProperty('created')) {
197 | it('7.1.3 DID Document Metadata - updated is later or equal than created.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:194:48)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › versionId › 7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
236 | if (didDocumentMetadata.hasOwnProperty('versionId')) {
237 | it('7.1.3 DID Document Metadata - The value of the property MUST be an ASCII string.', async () => {
> 238 | expect(didDocumentMetadata['versionId']).toBeAsciiString();
| ^
239 | });
240 | }
241 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:238:50)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:evan:testcore:0x126E901F6F408f5E260d95c62E7c73D9B60fd734 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:gatc:2xtSori9UQZdTqzxrkp7zqKM4Kj5B4C7 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:gatc:2xtSori9UQZdTqzxrkp7zqKM4Kj5B4C7 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:gatc:2xtSori9UQZdTqzxrkp7zqKM4Kj5B4C7 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:gatc:2xtSori9UQZdTqzxrkp7zqKM4Kj5B4C7 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:gatc:2xtSori9UQZdTqzxrkp7zqKM4Kj5B4C7 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:gatc:2xtSori9UQZdTqzxrkp7zqKM4Kj5B4C7 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:gatc:2xtSori9UQZdTqzxrkp7zqKM4Kj5B4C7 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:gatc:2xtSori9UQZdTqzxrkp7zqKM4Kj5B4C7 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:gatc:2xtSori9UQZdTqzxrkp7zqKM4Kj5B4C7 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:github:gjgd › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:github:gjgd › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:github:gjgd › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:github:gjgd › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:github:gjgd › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:github:gjgd › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:github:gjgd › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:github:gjgd › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:github:gjgd › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:hcr:0f674e7e-4b49-4898-85f6-96176c1e30de › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:hcr:0f674e7e-4b49-4898-85f6-96176c1e30de › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:hcr:0f674e7e-4b49-4898-85f6-96176c1e30de › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:hcr:0f674e7e-4b49-4898-85f6-96176c1e30de › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:hcr:0f674e7e-4b49-4898-85f6-96176c1e30de › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:hcr:0f674e7e-4b49-4898-85f6-96176c1e30de › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:hcr:0f674e7e-4b49-4898-85f6-96176c1e30de › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:hcr:0f674e7e-4b49-4898-85f6-96176c1e30de › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:hcr:0f674e7e-4b49-4898-85f6-96176c1e30de › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:icon:02:6f7a00a29deb82cb36d501d687c18bad79a8f1c154ef0c78 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:icon:02:6f7a00a29deb82cb36d501d687c18bad79a8f1c154ef0c78 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:icon:02:6f7a00a29deb82cb36d501d687c18bad79a8f1c154ef0c78 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:icon:02:6f7a00a29deb82cb36d501d687c18bad79a8f1c154ef0c78 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:icon:02:6f7a00a29deb82cb36d501d687c18bad79a8f1c154ef0c78 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:icon:02:6f7a00a29deb82cb36d501d687c18bad79a8f1c154ef0c78 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:icon:02:6f7a00a29deb82cb36d501d687c18bad79a8f1c154ef0c78 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:icon:02:6f7a00a29deb82cb36d501d687c18bad79a8f1c154ef0c78 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:icon:02:6f7a00a29deb82cb36d501d687c18bad79a8f1c154ef0c78 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:io:0x476c81C27036D05cB5ebfe30ae58C23351a61C4A › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:io:0x476c81C27036D05cB5ebfe30ae58C23351a61C4A › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:io:0x476c81C27036D05cB5ebfe30ae58C23351a61C4A › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:io:0x476c81C27036D05cB5ebfe30ae58C23351a61C4A › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:io:0x476c81C27036D05cB5ebfe30ae58C23351a61C4A › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:io:0x476c81C27036D05cB5ebfe30ae58C23351a61C4A › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:io:0x476c81C27036D05cB5ebfe30ae58C23351a61C4A › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:io:0x476c81C27036D05cB5ebfe30ae58C23351a61C4A › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:io:0x476c81C27036D05cB5ebfe30ae58C23351a61C4A › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ion:EiClkZMDxPKqC9c-umQfTkR8vvZ9JPhl_xLDI9Nfk38w5w › PARAMETER expected outcome: defaultOutcomes › DID Document Metadata › canonicalId › 7.1.3 DID Document Metadata - The value of canonicalId MUST be a string that conforms to the rules in Section § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
277 | it('7.1.3 DID Document Metadata - The value of canonicalId MUST be a string that conforms to the rules in Section § 3.1 DID Syntax.', async () => {
278 | const canonicalId = didDocumentMetadata['canonicalId'];
> 279 | expect(canonicalId).toBeValidDid();
| ^
280 | });
281 | it('7.1.3 DID Document Metadata - A canonicalId value MUST be produced by, and a form of, the same DID Method as the id property value.', async () => {
282 | if (didDocument) {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:279:29)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:jolo:e76fb4b4900e43891f613066b9afca366c6d22f7d87fc9f78a91515be24dfb21 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:jolo:e76fb4b4900e43891f613066b9afca366c6d22f7d87fc9f78a91515be24dfb21 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:jolo:e76fb4b4900e43891f613066b9afca366c6d22f7d87fc9f78a91515be24dfb21 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:jolo:e76fb4b4900e43891f613066b9afca366c6d22f7d87fc9f78a91515be24dfb21 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:jolo:e76fb4b4900e43891f613066b9afca366c6d22f7d87fc9f78a91515be24dfb21 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:jolo:e76fb4b4900e43891f613066b9afca366c6d22f7d87fc9f78a91515be24dfb21 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:jolo:e76fb4b4900e43891f613066b9afca366c6d22f7d87fc9f78a91515be24dfb21 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:jolo:e76fb4b4900e43891f613066b9afca366c6d22f7d87fc9f78a91515be24dfb21 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:jolo:e76fb4b4900e43891f613066b9afca366c6d22f7d87fc9f78a91515be24dfb21 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6 › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6 › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6 › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6 › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6 › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6 › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MksQ35B5bwZDQq4QKuhQW2Sv6dcqwg4PqcSFf67pdgrtjB › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MksQ35B5bwZDQq4QKuhQW2Sv6dcqwg4PqcSFf67pdgrtjB › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MksQ35B5bwZDQq4QKuhQW2Sv6dcqwg4PqcSFf67pdgrtjB › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MksQ35B5bwZDQq4QKuhQW2Sv6dcqwg4PqcSFf67pdgrtjB › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MksQ35B5bwZDQq4QKuhQW2Sv6dcqwg4PqcSFf67pdgrtjB › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MksQ35B5bwZDQq4QKuhQW2Sv6dcqwg4PqcSFf67pdgrtjB › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MksQ35B5bwZDQq4QKuhQW2Sv6dcqwg4PqcSFf67pdgrtjB › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MksQ35B5bwZDQq4QKuhQW2Sv6dcqwg4PqcSFf67pdgrtjB › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:key:z6MksQ35B5bwZDQq4QKuhQW2Sv6dcqwg4PqcSFf67pdgrtjB › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:kilt:5CqJa4Ct7oMeMESzehTiN9fwYdGLd7tqeirRMpGDh2XxYYyx › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:kilt:5CqJa4Ct7oMeMESzehTiN9fwYdGLd7tqeirRMpGDh2XxYYyx › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:kilt:5CqJa4Ct7oMeMESzehTiN9fwYdGLd7tqeirRMpGDh2XxYYyx › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:kilt:5CqJa4Ct7oMeMESzehTiN9fwYdGLd7tqeirRMpGDh2XxYYyx › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:kilt:5CqJa4Ct7oMeMESzehTiN9fwYdGLd7tqeirRMpGDh2XxYYyx › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:kilt:5CqJa4Ct7oMeMESzehTiN9fwYdGLd7tqeirRMpGDh2XxYYyx › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:kilt:5CqJa4Ct7oMeMESzehTiN9fwYdGLd7tqeirRMpGDh2XxYYyx › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:kilt:5CqJa4Ct7oMeMESzehTiN9fwYdGLd7tqeirRMpGDh2XxYYyx › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:kilt:5CqJa4Ct7oMeMESzehTiN9fwYdGLd7tqeirRMpGDh2XxYYyx › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:lit:AEZ87t1bi5bRxmVh3ksMUi › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:lit:AEZ87t1bi5bRxmVh3ksMUi › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:lit:AEZ87t1bi5bRxmVh3ksMUi › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:lit:AEZ87t1bi5bRxmVh3ksMUi › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:lit:AEZ87t1bi5bRxmVh3ksMUi › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:lit:AEZ87t1bi5bRxmVh3ksMUi › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:lit:AEZ87t1bi5bRxmVh3ksMUi › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type of the caller's preferred representation of the DID document.
TypeError: expect(...).toBeMediaType is not a function
102 | if (resolutionOptions.hasOwnProperty('accept')) {
103 | it('7.1.1 DID Resolution Options - The Media Type of the caller\'s preferred representation of the DID document.', async () => {
> 104 | expect(resolutionOptions['accept']).toBeMediaType();
| ^
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
107 | expect(resolutionOptions['accept']).toBeAsciiString();
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:104:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:lit:AEZ87t1bi5bRxmVh3ksMUi › PARAMETER expected outcome: defaultOutcomes › DID Resolution Options › accept › 7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.
TypeError: expect(...).toBeAsciiString is not a function
105 | });
106 | it('7.1.1 DID Resolution Options - The Media Type MUST be expressed as an ASCII string.', async () => {
> 107 | expect(resolutionOptions['accept']).toBeAsciiString();
| ^
108 | });
109 | }
110 | it('7.1.1 DID Resolution Options - This property is OPTIONAL for the resolveRepresentation function and MUST NOT be used with the resolve function.', async () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:107:51)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:lit:AEZ87t1bi5bRxmVh3ksMUi › PARAMETER expected outcome: defaultOutcomes › DID Resolution Metadata › contentType › 7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.
TypeError: expect(...).toBeAsciiString is not a function
129 | if (didResolutionMetadata.hasOwnProperty('contentType')) {
130 | it('7.1.2 DID Resolution Metadata - The value of this property MUST be an ASCII string that is the Media Type of the conformant representations.', async () => {
> 131 | expect(didResolutionMetadata['contentType']).toBeAsciiString();
| ^
132 | expect(didResolutionMetadata['contentType']).toBeMediaType();
133 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
134 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:131:62)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.
TypeError: expect(...).not.toBeEmpty is not a function
16 | describe(suiteName, () => {
17 | it('All conformant DID resolvers MUST implement the DID resolution functions for at least one DID method and MUST be able to return a DID document in at least one conformant representation.', async () => {
> 18 | expect(implementation.executions).not.toBeEmpty();
| ^
19 | const execution = implementation.executions.find((execution) => (execution.function === 'resolveRepresentation'));
20 | expect(execution).not.toBeFalsy();
21 | utils.expectConformantDidDocumentRepresentation(execution.output.didDocumentStream, execution.output.didResolutionMetadata.contentType);
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.spec.js:18:49)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:mpg:7PGGnRdvKKFftSXU3Jw75Vk5npfg › PARAMETER expected outcome: defaultOutcomes › 7.1 DID Resolution - This input is REQUIRED and the value MUST be a conformant DID as defined in § 3.1 DID Syntax.
TypeError: expect(...).toBeValidDid is not a function
9 | expect(did).not.toBeFalsy();
10 | if (! didResolutionMetadata.hasOwnProperty('error') || didResolutionMetadata['error'] !== 'invalidDid') {
> 11 | expect(did).toBeValidDid();
| ^
12 | }
13 | });
14 | describe('resolutionOptions', () => {
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:11:23)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:mpg:7PGGnRdvKKFftSXU3Jw75Vk5npfg › PARAMETER expected outcome: defaultOutcomes › resolutionOptions › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:16:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:mpg:7PGGnRdvKKFftSXU3Jw75Vk5npfg › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - A metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:24:17)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:mpg:7PGGnRdvKKFftSXU3Jw75Vk5npfg › PARAMETER expected outcome: defaultOutcomes › didResolutionMetadata › 7.1 DID Resolution - If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream.
TypeError: expect(...).toBeMediaType is not a function
33 | if (execution.function === 'resolveRepresentation') {
34 | expect(Object.keys(didResolutionMetadata)).toContain('contentType');
> 35 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
36 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
37 | }
38 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:35:58)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:mpg:7PGGnRdvKKFftSXU3Jw75Vk5npfg › PARAMETER expected outcome: defaultOutcomes › didDocumentStream › 7.1 DID Resolution - If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations.
TypeError: expect(...).toBeMediaType is not a function
74 | if (! didResolutionMetadata.hasOwnProperty('error')) {
75 | expect(didDocumentStream).not.toBeFalsy();
> 76 | expect(didResolutionMetadata['contentType']).toBeMediaType();
| ^
77 | utils.expectConformantDidDocumentRepresentation(didDocumentStream, didResolutionMetadata['contentType']);
78 | }
79 | });
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:76:60)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:mpg:7PGGnRdvKKFftSXU3Jw75Vk5npfg › PARAMETER expected outcome: defaultOutcomes › didDocumentMetadata › 7.1 DID Resolution - If the resolution is successful, this MUST be a metadata structure.
TypeError: expect(...).toBeInfraMap is not a function
78 | const expectConformantMetadataStructure = ((metaDataStructure) => {
79 | // TODO: improve this by re-using other test code
> 80 | expect(metaDataStructure).toBeInfraMap();
| ^
81 | });
82 |
83 | module.exports = {
at Object.expectConformantMetadataStructure (packages/did-core-test-server/suites/resolution-utils.js:80:29)
at Object.<anonymous> (packages/did-core-test-server/suites/did-resolution/did-resolution.js:90:19)
● suites/did-resolution › IMPLEMENTATION ::Universal Resolver:: › 7.1.x DID Resolution - Universal Resolver - Decentralized Identit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment