Skip to content

Commit

Permalink
feat(ref-imp): #781 - lint
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacJChen committed Sep 23, 2020
1 parent 82d087c commit 7c1bc51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/core/versions/latest/CreateOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class CreateOperation implements OperationModel {
};

if (operationObject.suffix_data.type !== undefined) {
suffixData.type = operationObject.suffix_data.type
suffixData.type = operationObject.suffix_data.type;
}

// For compatibility with data pruning, we have to assume that `delta` may be unavailable,
Expand Down
4 changes: 2 additions & 2 deletions tests/core/CreateOperation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ describe('CreateOperation', async () => {
const actual = Multihash.canonicalizeThenHashThenEncode(suffixData);
const expected = fs.readFileSync('tests/fixtures/uniqueSuffix/resultingSuffix.txt', 'utf8');
expect(actual).toEqual(expected);
})
})
});
});

describe('computeDidUniqueSuffix()', async () => {
it('should return expected did unique suffix', async (done) => {
Expand Down
4 changes: 2 additions & 2 deletions tests/core/Did.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('DID', async () => {
Did['constructCreateOperationFromEncodedJcs'](testInitialState);
fail('expect to throw sidetree error but did not');
} catch (e) {
expect(e).toEqual(new SidetreeError(ErrorCode.DidInitialStateJcsIsNotJosn, 'long form initial state should be encoded jcs'));
expect(e).toEqual(new SidetreeError(ErrorCode.DidInitialStateJcsIsNotJosn, 'Long form initial state should be encoded jcs.'));
}
});

Expand All @@ -24,7 +24,7 @@ describe('DID', async () => {
Did['constructCreateOperationFromEncodedJcs'](testInitialState);
fail('expect to throw sidetree error but did not');
} catch (e) {
expect(e).toEqual(new SidetreeError(ErrorCode.DidInitialStateJcsIsNotJcs, 'make sure to jcs then encode the initial state'));
expect(e).toEqual(new SidetreeError(ErrorCode.DidInitialStateJcsIsNotJcs, 'Initial state object and JCS string mismatch.'));
}
});
});
Expand Down

0 comments on commit 7c1bc51

Please sign in to comment.