travis-ci
86 of 86 new or added lines in 6 files covered. (100.0%)
194 of 210 relevant lines covered (92.38%)
6.9 hits per line
|
'use strict';
|
2✔ |
|
|
2✔ |
|
const Hoek = require('hoek');
|
2✔ |
|
|
2✔ |
|
exports = module.exports = (source, key, context, callback) => { |
2✔ |
|
|
2✔ |
|
if(!context) {
|
× |
|
// Return nothing
|
2✔ |
|
return callback();
|
× |
|
} |
2✔ |
|
|
2✔ |
|
callback(null, Hoek.reach(context, 'query.' + key)); |
4✔ |
|
}; |
2✔ |