Skip to content

Commit 7ec638b

Browse files
committed
chore: fix linter warning and tests
1 parent 1182e54 commit 7ec638b

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
ownerId: '11111111111111111111111111111111',
3-
contractId: '7CSFGeF4WNzgDmx94zwvHkYaG3Dx4XEe5LFsFgJswLbm'
3+
contractId: '7CSFGeF4WNzgDmx94zwvHkYaG3Dx4XEe5LFsFgJswLbm',
44
};

packages/wallet-utils-contract/test/unit/walletContract.spec.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77
const generateRandomIdentifier = require('@dashevo/wasm-dpp/lib/test/utils/generateRandomIdentifierAsync');
88

99
const { expect } = require('chai');
10-
const walletContractDocumentsSchema = require('../../schema/v1/wallet-contract-documents.json');
10+
const walletContractDocumentsSchema = require('../../schema/v1/wallet-utils-contract-documents.json');
1111

1212
const expectJsonSchemaError = (validationResult, errorCount = 1) => {
1313
const errors = validationResult.getErrors();
@@ -85,11 +85,11 @@ describe('Wallet Contract', () => {
8585
const error = expectJsonSchemaError(validationResult);
8686

8787
expect(error.keyword)
88-
.to
89-
.equal('required');
88+
.to
89+
.equal('required');
9090
expect(error.params.missingProperty)
91-
.to
92-
.equal('encryptionKeyIndex');
91+
.to
92+
.equal('encryptionKeyIndex');
9393
});
9494
});
9595

@@ -102,11 +102,11 @@ describe('Wallet Contract', () => {
102102
const error = expectJsonSchemaError(validationResult);
103103

104104
expect(error.keyword)
105-
.to
106-
.equal('required');
105+
.to
106+
.equal('required');
107107
expect(error.params.missingProperty)
108-
.to
109-
.equal('encryptedMetadata');
108+
.to
109+
.equal('encryptedMetadata');
110110
});
111111

112112
it('should be not shorter than 32 bytes', async () => {
@@ -117,11 +117,11 @@ describe('Wallet Contract', () => {
117117
const error = expectJsonSchemaError(validationResult);
118118

119119
expect(error.keyword)
120-
.to
121-
.equal('minBytes');
120+
.to
121+
.equal('minItems');
122122
expect(error.instancePath)
123-
.to
124-
.equal('/encryptedMetadata');
123+
.to
124+
.equal('/encryptedMetadata');
125125
});
126126

127127
it('should be not longer than 4096 bytes', async () => {
@@ -132,11 +132,11 @@ describe('Wallet Contract', () => {
132132
const error = expectJsonSchemaError(validationResult);
133133

134134
expect(error.keyword)
135-
.to
136-
.equal('maxItems');
135+
.to
136+
.equal('maxItems');
137137
expect(error.instancePath)
138-
.to
139-
.equal('/encryptedMetadata');
138+
.to
139+
.equal('/encryptedMetadata');
140140
});
141141
});
142142

0 commit comments

Comments
 (0)