it('does not create an HTTPS server if `https` is `null`', async () => { gasketAPI.config = { hostname: 'local.gasket.godaddy.com', http: 8080, https: null }; await start(); const createServerOpts = createServersModule.lastCall.args[0]; assume(createServerOpts).to.haveOwnProperty('http'); assume(createServerOpts).to.not.haveOwnProperty('https'); });
assume(nextOptions.conf).to.not.haveOwnProperty('webpack'); }); });
it('does not create an HTTP server if `http` is `null`', async () => { gasketAPI.config = { hostname: 'local.gasket.godaddy.com', http: null, https: { port: 3000 } }; await start(); const createServerOpts = createServersModule.lastCall.args[0]; assume(createServerOpts).to.not.haveOwnProperty('http'); assume(createServerOpts).to.haveOwnProperty('https'); });
it('does not create an HTTPS server if `https` is `null`', async () => { gasketAPI.config = { hostname: 'local.gasket.godaddy.com', http: 8080, https: null }; await start(); const createServerOpts = createServersModule.lastCall.args[0]; assume(createServerOpts).to.haveOwnProperty('http'); assume(createServerOpts).to.not.haveOwnProperty('https'); });
it('does not create an HTTP server if `http` is `null`', async () => { gasketAPI.config = { hostname: 'local.gasket.godaddy.com', http: null, https: { port: 3000 } }; await start(); const createServerOpts = createServersModule.lastCall.args[0]; assume(createServerOpts).to.not.haveOwnProperty('http'); assume(createServerOpts).to.haveOwnProperty('https'); });