Added some tests
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
var tape = require('../..');
|
||||
|
||||
tape.test('module-a', function (t) {
|
||||
t.plan(1);
|
||||
t.pass('loaded module a');
|
||||
});
|
||||
|
||||
global.module_a = true;
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
var tape = require('../..');
|
||||
|
||||
tape.test('module-b', function (t) {
|
||||
t.plan(1);
|
||||
t.pass('loaded module b');
|
||||
});
|
||||
|
||||
global.module_b = true;
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
var tape = require('../..');
|
||||
|
||||
tape.test('test-a', function (t) {
|
||||
t.ok(global.module_a, 'module-a loaded in same context');
|
||||
t.pass('test ran after module-a was loaded');
|
||||
t.end();
|
||||
});
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
var tape = require('../..');
|
||||
|
||||
tape.test('test-b', function (t) {
|
||||
t.ok(global.module_b, 'module-b loaded in same context');
|
||||
t.pass('test ran after module-b was loaded');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user