Skip to content

Commit

Permalink
Merge 2a27b40 into 7a7ee65
Browse files Browse the repository at this point in the history
  • Loading branch information
celeduc committed Apr 21, 2020
2 parents 7a7ee65 + 2a27b40 commit 1c29db0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .nycrc
Expand Up @@ -9,7 +9,7 @@
"json"
],
"exclude": ["**/*/test*", "test/*", "coverage/*", ".eslintrc.js"],
"report-dir": "./coverage/node/",
"report-dir": "./coverage/",
"all": "true"
}

5 changes: 3 additions & 2 deletions .travis.yml
@@ -1,9 +1,10 @@
language: node_js
cache:
npm: false
node_js:
- "v12.16.1"
- "v12.16.2"
install:
- npm install
script:
- npm run lint
after_script:
- npm run coveralls
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "@lorena-ssi/lorena-sdk",
"version": "1.1.5",
"version": "1.1.6",
"description": "Lorena SDK",
"author": "Alex Puig <alex@caelumlabs.com>",
"license": "MIT",
Expand All @@ -27,7 +27,7 @@
"@lorena-ssi/did-resolver": "^0.2.0",
"@lorena-ssi/matrix-lib": "^1.0.9",
"@lorena-ssi/substrate-lib": "^2.1.3",
"@lorena-ssi/wallet-lib": "^1.0.12",
"@lorena-ssi/wallet-lib": "^1.1.0",
"@lorena-ssi/zenroom-lib": "^1.5.0",
"debug": "^4.1.1",
"esm": "^3.2.25"
Expand Down
16 changes: 12 additions & 4 deletions test/lorena-test.js
Expand Up @@ -17,8 +17,16 @@ const lorenaKeys = [
]

describe('Lorena API', function () {
let lorena
const wallet = new Wallet('test')
let lorena, wallet
const password = 'test'

it('should prepare the wallet', async () => {
wallet = new Wallet('lorena-sdk-test')
await wallet.delete()
const result = await wallet.unlock(password)
expect(result).to.be.false
await wallet.lock(password)
})

it('should construct a Lorena class', async () => {
lorena = new Lorena(wallet)
Expand All @@ -43,14 +51,14 @@ describe('Lorena API', function () {
lorena.on('unlocked', () => {
done()
})
lorena.unlock('test')
lorena.unlock(password)
})

it('should lock wallet', (done) => {
lorena.on('locked', () => {
done()
})
lorena.lock('test')
lorena.lock(password)
})

it('should have these private methods', () => {
Expand Down

0 comments on commit 1c29db0

Please sign in to comment.