Skip to content

Commit

Permalink
Added support for chai-things plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Fesseler committed Feb 3, 2014
1 parent 300047e commit f93402c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md 100644 → 100755
Expand Up @@ -31,6 +31,7 @@ Bundled plugins
* [chai-as-promised](http://chaijs.com/plugins/chai-as-promised) * [chai-as-promised](http://chaijs.com/plugins/chai-as-promised)
* [chai-jquery](http://chaijs.com/plugins/chai-jquery) (jQuery should be included manually) * [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) * [sinon-chai](http://chaijs.com/plugins/sinon-chai) (sinon will be included automatically)
* [chai-things](http://chaijs.com/plugins/chai-things)


Browser support Browser support
--------------- ---------------
Expand Down
10 changes: 10 additions & 0 deletions index.js 100644 → 100755
Expand Up @@ -88,6 +88,16 @@ var plugins = {
requireAdapter(name, filePath, files, true); 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)); files.push(pattern(filePath, required));
} }
}; };
Expand Down
6 changes: 4 additions & 2 deletions package.json 100644 → 100755
Expand Up @@ -9,7 +9,8 @@
"sinon-chai", "sinon-chai",
"sinon", "sinon",
"jquery", "jquery",
"chai-as-promised" "chai-as-promised",
"chai-things"
], ],
"version": "0.1.3", "version": "0.1.3",
"author": { "author": {
Expand All @@ -34,6 +35,7 @@
"chai-jquery": "~1.2.0", "chai-jquery": "~1.2.0",
"chai-as-promised": "~4.1.0", "chai-as-promised": "~4.1.0",
"sinon": "~1.7.3", "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.