buster-configuration
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -62,7 +62,8 @@ var B = require("buster-core"); | ||
findDefaultFiles: function (baseDir, callback) { | ||
var file; | ||
while (!file && baseDir !== "/") { | ||
var file, lastBaseDir; | ||
do { | ||
file = tryFileNames(baseDir, this.defaultFileNames()); | ||
lastBaseDir = baseDir; | ||
baseDir = Path.dirname(baseDir); | ||
} | ||
} while (!file && baseDir !== lastBaseDir); | ||
callback(null, isExistingFile(file) ? [file] : []); | ||
@@ -69,0 +70,0 @@ }, |
{ | ||
"name": "buster-configuration", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Implements the buster.js configuration file, including resource loading, file globbing, grouped test configs and more", | ||
@@ -27,3 +27,3 @@ "homepage": "http://busterjs.org/buster-configuration", | ||
"when": "https://github.com/cujojs/when/tarball/1.3.0", | ||
"ramp-resources": ">=0.4", | ||
"ramp-resources": "=0.4.1", | ||
"buster-evented-logger": ">=0.4.4", | ||
@@ -30,0 +30,0 @@ "async": "~0.1", |
@@ -0,1 +1,2 @@ | ||
var path = require('path'); | ||
var buster = require("buster"); | ||
@@ -33,5 +34,7 @@ var configuration = require("../lib/buster-configuration"); | ||
assert.match(err.message, | ||
"No file provided, and none of\n" + | ||
"[seaman.js, test/seaman.js, spec/seaman.js]" + | ||
" exist"); | ||
"No file provided, and none of\n" + "[" + | ||
path.join("seaman.js") + ", " + | ||
path.join("test", "seaman.js") + ", " + | ||
path.join("spec", "seaman.js") + | ||
"]" + " exist"); | ||
})); | ||
@@ -38,0 +41,0 @@ }, |
@@ -5,3 +5,4 @@ var buster = require("buster"); | ||
var fs = require("fs"); | ||
var FIXTURES_ROOT = path.resolve(__dirname, "..", ".fixtures"); | ||
var MODULE_ROOT = path.resolve(__dirname, ".."); | ||
var FIXTURES_ROOT = path.resolve(MODULE_ROOT, ".fixtures"); | ||
@@ -55,3 +56,3 @@ module.exports = { | ||
cdFixtures: function () { | ||
this.mkdir(""); | ||
this.mkdir(FIXTURES_ROOT); | ||
process.chdir(FIXTURES_ROOT); | ||
@@ -67,2 +68,3 @@ }, | ||
} | ||
process.chdir(MODULE_ROOT); | ||
rmrf(FIXTURES_ROOT, function (err) { | ||
@@ -69,0 +71,0 @@ if (err) { require("buster").log(err.toString()); } |
51742
1310
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedglob@5.0.15(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedlodash@3.10.1(transitive)
- Removedmime@1.6.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedramp-resources@2.0.2(transitive)
- Removedwhen@3.7.8(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedramp-resources@=0.4.1