Skip to content

Commit

Permalink
test: Fixing broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Feb 11, 2020
1 parent 0102582 commit 385a0eb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/daf-ethr-did-fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"devDependencies": {
"@types/debug": "^4.1.5",
"@types/ethjs-signer": "^0.1.0",
"@types/libsodium-wrappers": "^0.7.7",
"typescript": "^3.7.2"
},
"files": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SignerProvider from 'ethjs-provider-signer'
import { DafResolver } from 'daf-resolver'
import { IdentityProvider } from '../identity-provider'
import { EthrIdentity } from '../ethr-identity'
import { Identity } from '../identity'
import { createJWT, decodeJWT, verifyJWT } from 'did-jwt'
const fs = require('fs')

Expand Down Expand Up @@ -37,7 +37,7 @@ describe('daf-ethr-did-fs', () => {

it('should create identity', async () => {
const identity = await identityProvider.createIdentity()
expect(identity).toBeInstanceOf(EthrIdentity)
expect(identity).toBeInstanceOf(Identity)
})

it('identity signs jwt', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/daf-ethr-did-fs/src/didcomm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Base58 = require('base-58')
import sodium from 'libsodium-wrappers'
import * as sodium from 'libsodium-wrappers'

interface IUnpackedMsg {
message: string
Expand Down
1 change: 1 addition & 0 deletions packages/daf-ethr-did-local-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"devDependencies": {
"@types/debug": "^4.1.5",
"@types/libsodium-wrappers": "^0.7.7",
"typescript": "^3.7.2"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/daf-ethr-did-local-storage/src/didcomm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Base58 = require('base-58')
import sodium from 'libsodium-wrappers'
import * as sodium from 'libsodium-wrappers'

interface IUnpackedMsg {
message: string
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@
"@types/koa-compose" "*"
"@types/node" "*"

"@types/libsodium-wrappers@^0.7.5":
"@types/libsodium-wrappers@^0.7.5", "@types/libsodium-wrappers@^0.7.7":
version "0.7.7"
resolved "https://registry.yarnpkg.com/@types/libsodium-wrappers/-/libsodium-wrappers-0.7.7.tgz#cdb25e85458612ec80f0157c3815fac187d0b6d2"
integrity sha512-Li91pVKcLvQJK3ZolwCPo85oxf2gKBCApgnesRxYg4OVYchLXcJB2eivX8S87vfQVv6ZRnyCO1lLDosZGJfpRg==
Expand Down

0 comments on commit 385a0eb

Please sign in to comment.