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

16 lines
233 B
JavaScript

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