Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Apr 2, 2015
1 parent fcb3cf3 commit d2a807c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ module.exports = function (grunt) {
port: 4002,
hostname: "localhost",
middleware: function(connect, options, middlewares) {
middlewares.push(['/delay', require("./tests/server/route-delay")]);
middlewares.push(["/delay", require("./tests/server/route-delay")]);
return middlewares;
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ describe("e2e/03-load-order/02-after-page-load-tag-manager", function() {
assert.operator(b["rt.end"], ">=", BOOMR.t_lstart);
}
});

it("Should have a end timestamp before the Boomerang start timestamp (if NavTiming not supported)", function() {
var b = tf.lastBeacon();
if (!(window.performance && window.performance.timing)) {
assert.operator(b["rt.end"], "<=", BOOMR.t_start);
}
});

it("Should have a end timestamp before now (if NavTiming not supported)", function() {
var b = tf.lastBeacon();
var now = +(new Date());
if (!(window.performance && window.performance.timing)) {
assert.operator(b["rt.end"], "<=", now);
}
});

it("Should have a end timestamp equal to BOOMR.t_onload (if NavTiming not supported)", function() {
var b = tf.lastBeacon();
if (!(window.performance && window.performance.timing)) {
Expand Down
5 changes: 5 additions & 0 deletions tests/server/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"env": {
"node": true
}
}
4 changes: 2 additions & 2 deletions tests/server/route-delay.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (wwwRoot.indexOf("/") !== 0) {
}

module.exports = function(req, res) {
var q = require('url').parse(req.url, true)['query'];
var q = require("url").parse(req.url, true).query;
var delay = q.delay;
var file = q.file;

Expand All @@ -55,4 +55,4 @@ module.exports = function(req, res) {
fileStream.pipe(res);
});
}, delay);
}
};

0 comments on commit d2a807c

Please sign in to comment.