Skip to content

Commit 05cba1a

Browse files
author
Victor Wiebe
committed
fix: make fixes to prettier and text issues within documents
1 parent c29d0c3 commit 05cba1a

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

src/procedures/__tests__/RemoveDocument.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ import * as contextModule from '../../Context';
55
import * as wrappersModule from '../../PolymathBase';
66
import * as tokenFactoryModule from '../../testUtils/MockedTokenFactoryModule';
77
import { RemoveDocument } from '../../procedures/RemoveDocument';
8-
import { Procedure } from '~/procedures/Procedure';
9-
import { ProcedureType, PolyTransactionTag, ErrorCode, RemoveDocumentProcedureArgs } from '~/types';
10-
import { PolymathError } from '~/PolymathError';
8+
import { Procedure } from '../../procedures/Procedure';
9+
import {
10+
ProcedureType,
11+
PolyTransactionTag,
12+
ErrorCode,
13+
RemoveDocumentProcedureArgs,
14+
} from '../../types';
15+
import { PolymathError } from '../../PolymathError';
1116
import { Wallet } from '../../Wallet';
1217

1318
const params: RemoveDocumentProcedureArgs = {
@@ -109,7 +114,7 @@ describe('RemoveDocument', () => {
109114
);
110115
});
111116

112-
test('should throw if account address is different than owner address', async () => {
117+
test('should throw if the document you are trying to remove does not exist in the security token document list', async () => {
113118
securityTokenMock.set('getAllDocuments', () => Promise.resolve(['RandomDoc']));
114119

115120
// Instantiate RemoveDocument

src/procedures/__tests__/SetDocument.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ import * as contextModule from '../../Context';
55
import * as wrappersModule from '../../PolymathBase';
66
import * as tokenFactoryModule from '../../testUtils/MockedTokenFactoryModule';
77
import { SetDocument } from '../../procedures/SetDocument';
8-
import { Procedure } from '~/procedures/Procedure';
9-
import { ProcedureType, PolyTransactionTag, ErrorCode, SetDocumentProcedureArgs } from '~/types';
10-
import { PolymathError } from '~/PolymathError';
8+
import { Procedure } from '../../procedures/Procedure';
9+
import {
10+
ProcedureType,
11+
PolyTransactionTag,
12+
ErrorCode,
13+
SetDocumentProcedureArgs,
14+
} from '../../types';
15+
import { PolymathError } from '../../PolymathError';
1116
import { Wallet } from '../../Wallet';
1217

1318
const params: SetDocumentProcedureArgs = {

0 commit comments

Comments
 (0)