Skip to content

Commit

Permalink
Remove usage of default parmaeter for testing compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmich committed Feb 1, 2017
1 parent fd68e13 commit 5e2ca91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ var request = require('request');

var content = '7d0b94d0-c6ec-11e4-8830-0800200c9a66';

function createApp(options = {}) {
function createApp(options) {
var bs = browserSync.create().init({ logSnippet: false, host: '127.0.0.1' });
return connect().use(connectBrowserSync(bs, options)).use(function (req, res) {
return connect().use(connectBrowserSync(bs, options || {})).use(function (req, res) {
res.setHeader('Content-Type', 'text/html');
res.end('<html><head><title>Test</title></head><body>' + content + '</body></html>');
});
Expand Down

0 comments on commit 5e2ca91

Please sign in to comment.