Skip to content

Commit

Permalink
more work on preorder salt
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Jul 23, 2024
1 parent ea80b2b commit a80ed85
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/platform-test-suite/test/e2e/dpns.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,28 @@ describe('DPNS', () => {
const rawDocument = documents[0].toObject();

delete rawDocument.$createdAt;
delete rawDocument.$createdAtCoreBlockHeight;
delete rawDocument.$createdAtBlockHeight;
delete rawDocument.$updatedAt;
delete rawDocument.$updatedAtCoreBlockHeight;
delete rawDocument.$updatedAtBlockHeight;
delete rawDocument.$transferredAt;
delete rawDocument.$transferredAtCoreBlockHeight;
delete rawDocument.$transferredAtBlockHeight;
delete rawDocument.preorderSalt;

const rawRegisteredDomain = registeredDomain.toObject();

delete rawRegisteredDomain.$createdAt;
delete rawRegisteredDomain.$createdAtCoreBlockHeight;
delete rawRegisteredDomain.$createdAtBlockHeight;
delete rawRegisteredDomain.$updatedAt;
delete rawRegisteredDomain.$updatedAtCoreBlockHeight;
delete rawRegisteredDomain.$updatedAtBlockHeight;
delete rawRegisteredDomain.$transferredAt;
delete rawRegisteredDomain.$transferredAtCoreBlockHeight;
delete rawRegisteredDomain.$transferredAtBlockHeight;
delete rawRegisteredDomain.preorderSalt;

expect(rawDocument).to.deep.equal(rawRegisteredDomain);
});
Expand Down

0 comments on commit a80ed85

Please sign in to comment.