Skip to content

Commit

Permalink
fix imports and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed May 30, 2024
1 parent 18b9c0c commit 79bca89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/dwn-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export enum DwnErrorCode {
IndexMissingIndexableProperty = 'IndexMissingIndexableProperty',
JwsDecodePlainObjectPayloadInvalid = 'JwsDecodePlainObjectPayloadInvalid',
MessagesGetInvalidCid = 'MessagesGetInvalidCid',
MessagesGetAuthorizationFailed = 'AuthorizationFailed',
MessagesGetAuthorizationFailed = 'MessagesGetAuthorizationFailed',
ParseCidCodecNotSupported = 'ParseCidCodecNotSupported',
ParseCidMultihashNotSupported = 'ParseCidMultihashNotSupported',
PermissionsProtocolValidateSchemaUnexpectedRecord = 'PermissionsProtocolValidateSchemaUnexpectedRecord',
Expand Down
9 changes: 8 additions & 1 deletion tests/handlers/messages-get.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ import type {
MessageStore
} from '../../src/index.js';

import { DataStream } from '../../src/utils/data-stream.js';
import { Dwn } from '../../src/dwn.js';
import { DwnConstant } from '../../src/core/dwn-constant.js';
import { DwnErrorCode } from '../../src/core/dwn-error.js';
import { expect } from 'chai';
import { Jws } from '../../src/utils/jws.js';
import { Message } from '../../src/core/message.js';
import { MessagesGet } from '../../src/interfaces/messages-get.js';
import { MessagesGetHandler } from '../../src/handlers/messages-get.js';
import { PermissionsProtocol } from '../../src/protocols/permissions.js';
import { stubInterface } from 'ts-sinon';
import { TestDataGenerator } from '../utils/test-data-generator.js';
import { TestEventStream } from '../test-event-stream.js';
import { TestStores } from '../test-stores.js';
import { DataStream, Dwn, DwnConstant, DwnErrorCode, DwnInterfaceName, DwnMethodName, Jws, PermissionsProtocol, Time } from '../../src/index.js';
import { Time } from '../../src/utils/time.js';
import { DidKey, UniversalResolver } from '@web5/dids';
import { DwnInterfaceName, DwnMethodName } from '../../src/enums/dwn-interface-method.js';

import sinon from 'sinon';

Expand Down

0 comments on commit 79bca89

Please sign in to comment.