all files / features/support/ world.js

100% Statements 10/10
50% Branches 1/2
100% Functions 3/3
100% Lines 10/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18               
"use strict";
const Hapi = require('hapi');
const Configue = require('../..');
 
function World() {
    const self = this;
    this.server = new Hapi.Server();
    this.configue = Configue;
 
    this.register = function (plugin, options, done) {
        self.server.register({register: plugin, options: options || {}}, done);
    };
 
}
 
module.exports = function () {
    this.World = World;
};