dot.dot.dot.exampol
This commit is contained in:
commit
a0bc2d79de
406 changed files with 34577 additions and 0 deletions
15
node_modules/tap/coverage-example/lib/bar.js
generated
vendored
Normal file
15
node_modules/tap/coverage-example/lib/bar.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
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;
|
||||
};
|
||||
|
15
node_modules/tap/coverage-example/lib/foo.js
generated
vendored
Normal file
15
node_modules/tap/coverage-example/lib/foo.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
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;
|
||||
};
|
||||
|
20
node_modules/tap/coverage-example/test/bar.test.js
generated
vendored
Normal file
20
node_modules/tap/coverage-example/test/bar.test.js
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
var test = require('tap').test,
|
||||
Bar = require('../lib/bar'),
|
||||
bar;
|
||||
|
||||
test('setup', function(t) {
|
||||
bar = new Bar('baz');
|
||||
t.ok(bar);
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('bar', function(t) {
|
||||
t.equal('baz', bar.foo());
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('teardown', function(t) {
|
||||
t.ok(true);
|
||||
t.end();
|
||||
});
|
||||
|
29
node_modules/tap/coverage-example/test/baz.test.js
generated
vendored
Normal file
29
node_modules/tap/coverage-example/test/baz.test.js
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
var test = require('tap').test,
|
||||
Foo = require('../lib/foo'),
|
||||
Bar = require('../lib/bar'),
|
||||
foo, bar;
|
||||
|
||||
test('setup', function(t) {
|
||||
foo = new Foo('baz');
|
||||
t.ok(foo);
|
||||
bar = new Bar('baz');
|
||||
t.ok(bar);
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('baz from Foo', function(t) {
|
||||
t.equal('baz', foo.baz());
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('baz from Bar', function(t) {
|
||||
t.equal('baz', bar.baz());
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
||||
test('teardown', function(t) {
|
||||
t.ok(true);
|
||||
t.end();
|
||||
});
|
||||
|
20
node_modules/tap/coverage-example/test/foo.test.js
generated
vendored
Normal file
20
node_modules/tap/coverage-example/test/foo.test.js
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
var test = require('tap').test,
|
||||
Foo = require('../lib/foo'),
|
||||
foo;
|
||||
|
||||
test('setup', function(t) {
|
||||
foo = new Foo('baz');
|
||||
t.ok(foo);
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('bar', function(t) {
|
||||
t.equal('baz', foo.bar());
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('teardown', function(t) {
|
||||
t.ok(true);
|
||||
t.end();
|
||||
});
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue