Skip to content

Commit

Permalink
Merge pull request #489 from cahrens/patch-3
Browse files Browse the repository at this point in the history
Add "wrap" to exports.
  • Loading branch information
stoeffel committed Feb 20, 2016
2 parents 93dffd5 + c1a3b89 commit 74f3e96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion exports.js
Expand Up @@ -2,7 +2,7 @@ module.exports = function() {
var result = {};

for (var prop in this) {
if (!this.hasOwnProperty(prop) || prop.match(/^(?:include|contains|reverse|join|map)$/)) continue;
if (!this.hasOwnProperty(prop) || prop.match(/^(?:include|contains|reverse|join|map|wrap)$/)) continue;
result[prop] = this[prop];
}

Expand Down
9 changes: 9 additions & 0 deletions tests/exports.js
@@ -0,0 +1,9 @@
var _ = require('underscore');
var deepEqual = require('assert').deepEqual;
var s = require('../');

test('#exports', function() {
deepEqual(_.intersection(Object.keys(s.exports()), _.functions(_)), [],
'Conflicts exist between exports and underscore functions'
);
});

0 comments on commit 74f3e96

Please sign in to comment.