Skip to content

Commit 7113150

Browse files
committed
Simplify fixture path setup
1 parent b5fe3c5 commit 7113150

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = function (grunt) {
2020
src: "csscritic.js",
2121
options: {
2222
host: "http://127.0.0.1:8765/",
23+
outfile: "test/_SpecRunner.html", // enforce same relative path as manual SpecRunner.html
2324
specs: [
2425
"test/specs/shared/*.js",
2526
"test/specs/*.js",
@@ -30,7 +31,6 @@ module.exports = function (grunt) {
3031
"node_modules/jquery/dist/jquery.js",
3132
"node_modules/jasmine-jquery/lib/jasmine-jquery.js",
3233
"test/testHelper.js",
33-
"test/gruntpath.js",
3434
],
3535
summary: true,
3636
display: "short",

test/gruntpath.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

test/testHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
window.testHelper = (function () {
44
var module = {};
55

6-
module.fixturesPath = "fixtures/";
6+
var fixturesPath = "fixtures/";
77

88
module.fixture = function (path) {
9-
return module.fixturesPath + path;
9+
return fixturesPath + path;
1010
};
1111

1212
var loadImage = function (url, successCallback, errorCallback) {

0 commit comments

Comments
 (0)