added unit testing, and started implementing unit tests...phew

This commit is contained in:
Josh Burman
2019-03-12 22:28:02 -04:00
parent 74aad4a957
commit e8c2539f1b
3489 changed files with 464813 additions and 88 deletions

22
node_modules/@sinonjs/samsam/lib/get-class-name.js generated vendored Normal file
View File

@ -0,0 +1,22 @@
"use strict";
var valueToString = require("@sinonjs/commons").valueToString;
var re = /function (\w+)\s*\(/;
function getClassName(value) {
if (value.constructor && "name" in value.constructor) {
return value.constructor.name;
}
if (typeof value.constructor === "function") {
var match = valueToString(value.constructor).match(re);
if (match.length > 1) {
return match[1];
}
}
return null;
}
module.exports = getClassName;