formations/javascript/base/exercices/tests-unitaires/node_modules/nodeunit/node_modules/tap/coverage-example/lib/foo.js

16 lines
233 B
JavaScript

var Foo = module.exports = function(str) {
this.foo = str;
this.str = str;
};
Foo.prototype.bar = function() {
var self = this;
return self.foo;
};
Foo.prototype.baz = function() {
var self = this;
return self.str;
};