node-test-helper
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -61,3 +61,3 @@ /* | ||
.replace(/^.?unit(\\|\/)?/, "") | ||
.replace(/(.test).js$/, ""); | ||
.replace(/(\.(test|spec))?\.js$/, ""); | ||
} | ||
@@ -64,0 +64,0 @@ return name; |
{ | ||
"name": "node-test-helper", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Test helper suite using Mocha test framework.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,3 +20,3 @@ var cwd = process.cwd(); | ||
_expect(TEST_ROOT_PATH).to.equal(global.TEST_ROOT_PATH); | ||
_expect(TEST_ROOT_PATH).to.equal(path.join(process.cwd(), "test")); | ||
_expect(TEST_ROOT_PATH).to.equal(path.join(cwd, "test")); | ||
}); | ||
@@ -28,3 +28,3 @@ }); | ||
_expect(TEST_HELPERS_PATH).to.equal(global.TEST_HELPERS_PATH); | ||
_expect(TEST_HELPERS_PATH).to.equal(path.join(process.cwd(), "test", "helpers")); | ||
_expect(TEST_HELPERS_PATH).to.equal(path.join(cwd, "test", "helpers")); | ||
}); | ||
@@ -36,3 +36,3 @@ }); | ||
_expect(TEST_FACTORIES_PATH).to.equal(global.TEST_FACTORIES_PATH); | ||
_expect(TEST_FACTORIES_PATH).to.equal(path.join(process.cwd(), "test", "factories")); | ||
_expect(TEST_FACTORIES_PATH).to.equal(path.join(cwd, "test", "factories")); | ||
}); | ||
@@ -44,3 +44,3 @@ }); | ||
_expect(TEST_FIXTURES_PATH).to.equal(global.TEST_FIXTURES_PATH); | ||
_expect(TEST_FIXTURES_PATH).to.equal(path.join(process.cwd(), "test", "fixtures")); | ||
_expect(TEST_FIXTURES_PATH).to.equal(path.join(cwd, "test", "fixtures")); | ||
}); | ||
@@ -47,0 +47,0 @@ }); |
23234
21
497
11