scarlet
Version:
The simple fast javascript interceptor for methods and properties.
23 lines (17 loc) • 379 B
JavaScript
function createNew() {
var instance = {
property : "any",
name : "ObjectLiteral",
__type__: "scarlet.tests.spec.builders.dummies.ObjectLiteral"
};
instance.method = function() {
};
instance.methodWithReturn = function() {
return "any";
};
instance.errorMethod = function(){
throw new Error("Any Error");
};
return instance;
}
module.exports = createNew;