Skip to content

Commit

Permalink
upgrade to hemera 5
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Mar 21, 2018
1 parent 0f15d36 commit 5aa0866
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,10 @@ function hemeraRedisCache(hemera, opts, done) {
}

module.exports = Hp(hemeraRedisCache, {
hemera: '>=3',
hemera: '>=5.0.0-rc.1',
name: require('./package.json').name,
dependencies: ['hemera-joi'],
options: {
payloadValidator: 'hemera-joi',
redis: null
}
})
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
"author": "Dustin Deus (https://github.com/StarpTech)",
"license": "MIT",
"dependencies": {
"hemera-plugin": "^0.1.1",
"redis": "2.8.x"
"hemera-plugin": "^1.1.1",
"redis": "2.8.x",
"hemera-joi": "^5.0.1"
},
"devDependencies": {
"code": "^3.0.2",
"eslint": "^4.9.0",
"eslint-config-hemera": "^0.0.1",
"hemera-joi": "^3.0.0",
"hemera-testsuite": "^1.4.1",
"mocha": "^4.0.1",
"nats": "^0.7.24",
"nats-hemera": "^3.0.0",
"np": "^2.18.3",
"nyc": "^11.2.1",
"prettier": "^1.9.2"
"eslint": "^4.19.0",
"eslint-config-hemera": "^0.0.2",
"hemera-testsuite": "^4.0.0",
"mocha": "^5.0.4",
"nats": "^0.8.4",
"nats-hemera": "^5.0.0-rc.3",
"np": "^2.20.1",
"nyc": "^11.6.0",
"prettier": "^1.11.1"
}
}
9 changes: 3 additions & 6 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const HemeraTestsuite = require('hemera-testsuite')

const expect = Code.expect

describe('Hemera-arango-store', function() {
describe('Hemera-redis-cache', function() {
let PORT = 6242
let natsUrl = 'nats://localhost:' + PORT
let server
Expand All @@ -20,7 +20,6 @@ describe('Hemera-arango-store', function() {
server = HemeraTestsuite.start_server(PORT, () => {
const nats = Nats.connect(natsUrl)
hemera = new Hemera(nats, {
crashOnFatal: false,
logLevel: 'silent'
})
hemera.use(HemeraJoi)
Expand All @@ -47,7 +46,7 @@ describe('Hemera-arango-store', function() {
key: 'example',
value: 100
})
.then(resp => expect(resp).to.be.equals('OK'))
.then(resp => expect(resp.data).to.be.equals('OK'))
})

it('get', function() {
Expand All @@ -65,8 +64,6 @@ describe('Hemera-arango-store', function() {
key: 'example'
})
})
.then(resp => {
expect(resp).to.be.equals('100')
})
.then(resp => expect(resp.data).to.be.equals('100'))
})
})

0 comments on commit 5aa0866

Please sign in to comment.