Permalink
Browse files

Added support for chai-things plugin

  • Loading branch information...
1 parent 300047e commit f93402cc8a6b86d87380edc196fce457255a7a41 @ffesseler ffesseler committed Feb 3, 2014
Showing with 15 additions and 2 deletions.
  1. +1 −0 README.md
  2. +10 −0 index.js
  3. +4 −2 package.json
View
1 README.md 100644 → 100755
@@ -31,6 +31,7 @@ Bundled plugins
* [chai-as-promised](http://chaijs.com/plugins/chai-as-promised)
* [chai-jquery](http://chaijs.com/plugins/chai-jquery) (jQuery should be included manually)
* [sinon-chai](http://chaijs.com/plugins/sinon-chai) (sinon will be included automatically)
+* [chai-things](http://chaijs.com/plugins/chai-things)
Browser support
---------------
View
10 index.js 100644 → 100755
@@ -88,6 +88,16 @@ var plugins = {
requireAdapter(name, filePath, files, true);
}
+ files.push(pattern(filePath, required));
+ },
+ 'chai-things': function(name, files) {
+ var filePath = require.resolve(name);
+ var required = requireUsed(files);
+
+ if (required) {
+ requireAdapter(name, filePath, files, true);
+ }
+
files.push(pattern(filePath, required));
}
};
View
6 package.json 100644 → 100755
@@ -9,7 +9,8 @@
"sinon-chai",
"sinon",
"jquery",
- "chai-as-promised"
+ "chai-as-promised",
+ "chai-things"
],
"version": "0.1.3",
"author": {
@@ -34,6 +35,7 @@
"chai-jquery": "~1.2.0",
"chai-as-promised": "~4.1.0",
"sinon": "~1.7.3",
- "sinon-chai": "~2.4.0"
+ "sinon-chai": "~2.4.0",
+ "chai-things" : "~0.2.0"
}
}

0 comments on commit f93402c

Please sign in to comment.