Skip to content

Commit

Permalink
tests(windows): Use windows-safe plugins in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Apr 2, 2015
1 parent e645e2a commit 8fadd1f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<a href="https://www.npmjs.com/package/browser-sync" title="NPM version">
<img src="https://img.shields.io/npm/v/browser-sync.svg?style=flat-square" />
</a>
<a href="https://www.npmjs.com/package/browser-sync">
<img src="https://img.shields.io/npm/dm/browser-sync.svg?style=flat-square" />
</a>
<a href="https://david-dm.org/BrowserSync/browser-sync" title="Dependency Status">
<img src="https://img.shields.io/david/BrowserSync/browser-sync.svg?style=flat-square&label=deps" />
</a>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"ua-parser-js": "^0.7.3"
},
"devDependencies": {
"bs-html-injector": "^1.5.2",
"browser-sync-spa": "^1.0.2",
"bs-snippet-injector": "^2.0.1",
"chai": "^2.1.0",
"chalk": "^1.0.0",
"cli-color": "^0.3.2",
Expand Down
7 changes: 4 additions & 3 deletions test/specs/plugins/user.plugins.inline.enabled.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ describe("Plugins: Setting the default state (false) if given in options", funct
var config = {
logLevel: "silent",
plugins: [{
"bs-html-injector": {
enabled: false
"bs-snippet-injector": {
enabled: false,
file: ""
}
}]
};
Expand Down Expand Up @@ -44,7 +45,7 @@ describe("Plugins: Setting the default state (true) if given in options", functi
var config = {
logLevel: "silent",
plugins: [{
"bs-html-injector": {
"bs-snippet-injector": {
enabled: true
}
}]
Expand Down
4 changes: 2 additions & 2 deletions test/specs/plugins/user.plugins.inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ var assert = require("chai").assert;
describe("Plugins: Retrieving user plugins when given inline", function () {

var instance;
var PLUGIN_REQUIRE = "bs-html-injector";
var PLUGIN_NAME = "HTML Injector";
var PLUGIN_REQUIRE = "bs-snippet-injector";
var PLUGIN_NAME = "Snippet Injector";

before(function (done) {

Expand Down
7 changes: 4 additions & 3 deletions test/specs/plugins/user.plugins.inline.options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ var assert = require("chai").assert;
describe("Plugins: Retrieving user plugins when given inline with options", function () {

var instance;
var PLUGIN_NAME = "HTML Injector";
var MODULE_REQUIRE = "bs-snippet-injector";
var PLUGIN_NAME = "Snippet Injector";

before(function (done) {

Expand All @@ -17,7 +18,7 @@ describe("Plugins: Retrieving user plugins when given inline with options", func
logLevel: "silent",
plugins: [
{
"bs-html-injector": {
"bs-snippet-injector": {
files: "*.html"
}
}
Expand All @@ -41,7 +42,7 @@ describe("Plugins: Retrieving user plugins when given inline with options", func
it("should have access to user provided opts", function (done) {
var plugin = instance.getUserPlugins()[0];
assert.equal(plugin.opts.files, "*.html");
assert.equal(plugin.opts.moduleName, "bs-html-injector");
assert.equal(plugin.opts.moduleName, MODULE_REQUIRE);
done();
});
});

0 comments on commit 8fadd1f

Please sign in to comment.