Skip to content

Commit

Permalink
feat(ref-imp): #781 - address pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacJChen committed Sep 25, 2020
1 parent 2f4186a commit fccff8d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/core/Did.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ describe('DID', async () => {
const largeDelta = { data: largeData };
const testInitialState = Encoder.encode(JsonCanonicalizer.canonicalizeAsBuffer({ suffix_data: 'some data', delta: largeDelta }));

try {
Did['constructCreateOperationFromEncodedJcs'](testInitialState);
fail('expect to throw sidetree error but did not');
} catch (e) {
expect(e.code).toEqual(ErrorCode.DeltaExceedsMaximumSize);
}
JasmineSidetreeErrorValidator.expectSidetreeErrorToBeThrown(() => { Did['constructCreateOperationFromEncodedJcs'](testInitialState); }, ErrorCode.DeltaExceedsMaximumSize);
});
});

Expand Down

0 comments on commit fccff8d

Please sign in to comment.