Skip to content

Commit

Permalink
Adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
makinde committed May 9, 2018
1 parent 8e8907e commit 7a7e990
Show file tree
Hide file tree
Showing 6 changed files with 5,382 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
services:
- mongodb
node_js:
- "6.14.2"
before_script:
- sleep 15
script: npm test
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function selectVirtuals(schema) {
|| !this._mongooseOptions.lean
|| !this._mongooseOptions.lean.virtuals
|| this._mongooseOptions.lean.virtuals.length) {
return;
return next();
}

var selection = this._fields;
Expand Down
Loading

0 comments on commit 7a7e990

Please sign in to comment.