Skip to content

Commit

Permalink
Test/support hapi v19. Closes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Jan 13, 2020
1 parent c319b08 commit a70b839
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
},
"homepage": "https://github.com/hapipal/schmervice#readme",
"peerDependencies": {
"@hapi/hapi": ">=17 <19"
"@hapi/hapi": ">=17 <20"
},
"dependencies": {
"@hapi/hoek": "8.x.x"
},
"devDependencies": {
"@hapi/code": "6.x.x",
"@hapi/hapi": "18.x.x",
"@hapi/lab": "19.x.x",
"@hapi/hapi-19": "npm:@hapi/hapi@19",
"@hapi/lab": "20.x.x",
"@hapi/somever": "2.x.x",
"coveralls": "3.x.x"
}
}
4 changes: 3 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
'use strict';

const Code = require('@hapi/code');
const Hapi = require('@hapi/hapi');
const Somever = require('@hapi/somever');
const Schmervice = require('..');
const Lab = require('@hapi/lab');

const Hapi = Somever.match('>=12', process.version) ? require('@hapi/hapi-19') : require('@hapi/hapi');

This comment has been minimized.

Copy link
@devinivy

devinivy Jan 14, 2020

Author Member

Oops! Should have been this:

const Hapi = Somever.match(process.version, '>=12') ? require('@hapi/hapi-19') : require('@hapi/hapi');

const { describe, it } = exports.lab = Lab.script();
const expect = Code.expect;

Expand Down

0 comments on commit a70b839

Please sign in to comment.