buster-configuration
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -0,0 +0,0 @@ module.exports = { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ var config = module.exports; |
@@ -0,0 +0,0 @@ var cgroup = require("./group"); |
@@ -0,0 +0,0 @@ var Path = require("path"); |
@@ -17,3 +17,4 @@ var Path = require("path"); | ||
["resources", "environment", "rootPath", "extends", "env", | ||
"server", "options", "serverString", "name", "autoRun", "extensions"] | ||
"server", "options", "serverString", "name", "autoRun", "extensions", | ||
"testbed"] | ||
); | ||
@@ -176,2 +177,8 @@ | ||
function convertTestBed(group) { | ||
if (group.config.testbed) { | ||
group.resources.push({ path: "/", file: group.config.testbed }); | ||
} | ||
} | ||
var cg = module.exports = _.extend(bane.createEventEmitter(), { | ||
@@ -211,2 +218,5 @@ create: function (options, rootPath) { | ||
this.runExtensionHook("configure", this); | ||
convertTestBed(this); | ||
this.rsPromise = d.promise; | ||
@@ -213,0 +223,0 @@ buildResourceSet(this, function (err, resourceSet) { |
{ | ||
"name": "buster-configuration", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Groks the buster.js configuration file, including resource loading, file globbing, grouped test configs and more", | ||
@@ -5,0 +5,0 @@ "homepage": "http://busterjs.org/buster-configuration", |
@@ -8,1 +8,9 @@ # buster-configuration | ||
Load and interact with Buster.JS configuration files. | ||
##Changelog | ||
**0.7.3** (25.03.2014) | ||
* feature [custom test beds](http://docs.busterjs.org/en/latest/overview/#custom-test-beds) added | ||
@@ -0,0 +0,0 @@ var buster = require("buster-node"); |
@@ -0,0 +0,0 @@ var buster = require("buster-node"); |
@@ -0,0 +0,0 @@ var path = require("path"); |
module.exports = { | ||
"Browser tests": {} | ||
}; |
@@ -255,2 +255,14 @@ var buster = require("buster-node"); | ||
"convert testbed into resource path": function () { | ||
var group = cgroup.create({ | ||
testbed: "testbed.html" | ||
}, __dirname + "/fixtures"); | ||
group.resolve(); | ||
assert.equals(group.resources.length, 1); | ||
assert.equals(group.resources[0].path, "/"); | ||
assert.equals(group.resources[0].file, "testbed.html"); | ||
}, | ||
"server address": { | ||
@@ -257,0 +269,0 @@ "is parsed": function () { |
@@ -0,0 +0,0 @@ var buster = require("buster-node"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1402
16
0
57248