compound-ex4
Version:
Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)
30 lines (23 loc) • 453 B
JavaScript
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();
});