Skip to content

Commit db7dc08

Browse files
committed
chore(travis): adds node 4.x to build pipeline
Relates to stalniy#1
1 parent 12e3c08 commit db7dc08

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
node_js:
3+
- "4.0.0"
34
- "6.9.0"
45
- "8.1.3"
56

spec/mongoose-plugin.spec.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ describe('Mongoose Plugin', () => {
4141
expect(schema.query.accessibleBy).to.equal(schema.statics.accessibleBy)
4242
})
4343

44-
it('creates query which returns empty array or null for ability which does not have rules for specified action', async () => {
44+
it('creates query which returns empty array or null for ability which does not have rules for specified action', () => {
4545
const query = schema.query.accessibleBy(new Ability())
46-
const [items, item] = await Promise.all([query.exec(), query.findOne().exec()])
4746

48-
expect(items).to.be.an('array').that.is.empty
49-
expect(item).not.to.exist
47+
return Promise.all([query.exec(), query.findOne().exec()]).then(([items, item]) => {
48+
expect(items).to.be.an('array').that.is.empty
49+
expect(item).not.to.exist
50+
})
5051
})
5152

5253
describe('`accessibleBy` infterface', () => {

0 commit comments

Comments
 (0)