Bugfix / tests: Specs list type (#4169)

* remove cruft..  ugh

* housekeeping: close stale issues

* fix issue #3945
This commit is contained in:
John McLear 2020-07-15 17:37:03 +01:00 committed by GitHub
parent 7873c76242
commit e24ef6969e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,8 @@ exports.expressCreateServer = function (hook_name, args, cb) {
files = files.filter(el => !/\.swp$/.test(el))
console.debug("Sent browser the following test specs:", files);
res.send("var specs_list = " + JSON.stringify(files) + ";\n");
res.setHeader('content-type', 'text/javascript');
res.end("var specs_list = " + JSON.stringify(files) + ";\n");
});
// path.join seems to normalize by default, but we'll just be explicit