Skip to content

Commit

Permalink
Add Set to cached prototypes
Browse files Browse the repository at this point in the history
This is required for @sinonjs/samsam
  • Loading branch information
mroderick committed Aug 19, 2019
1 parent fd4ce45 commit 709e3f5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/prototypes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ module.exports = {
array: require("./array"),
function: require("./function"),
object: require("./object"),
set: require("./set"),
string: require("./string")
};
4 changes: 4 additions & 0 deletions lib/prototypes/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var assert = require("@sinonjs/referee-sinon").assert;
var arrayProto = require("./index").array;
var functionProto = require("./index").function;
var objectProto = require("./index").object;
var setProto = require("./index").set;
var stringProto = require("./index").string;

describe("prototypes", function() {
Expand All @@ -17,6 +18,9 @@ describe("prototypes", function() {
describe(".object", function() {
verifyProperties(objectProto, Object);
});
describe(".set", function() {
verifyProperties(setProto, Set);
});
describe(".string", function() {
verifyProperties(stringProto, String);
});
Expand Down
5 changes: 5 additions & 0 deletions lib/prototypes/set.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

var copyPrototype = require("./copy-prototype");

module.exports = copyPrototype(Set.prototype);

0 comments on commit 709e3f5

Please sign in to comment.