w3c / did-test-suite

W3C DID Test Suite and Implementation Report

Home Page:https://w3c.github.io/did-test-suite/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

universal-resolver-did-ccp not passing test

fqutishat opened this issue · comments

  ● 7.1.x DID Resolution - Universal Resolver - Decentralized Identity Foundation and Contributors › did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw (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.

    expect(received).toBeDidCoreDatetime()

    Expected value to be of a valid DID Core Datetime:
      "a valid DID Core Datetime"
    Received:
      "2019-10-21T11:17:49.379Z"

      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> (suites/did-resolution/did-resolution.js:194:48)

This has been fixed, closing.