You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
233 B
JavaScript
12 lines
233 B
JavaScript
7 years ago
|
var Foo1 = require('./one.js');
|
||
|
var Foo2 = require('./foo/two.js');
|
||
|
|
||
|
var f1 = new Foo1;
|
||
|
var f2 = new Foo2;
|
||
|
|
||
|
t.equal(Foo1, Foo2);
|
||
|
t.ok(f1 instanceof Foo1);
|
||
|
t.ok(f1 instanceof Foo2);
|
||
|
t.ok(f2 instanceof Foo1);
|
||
|
t.ok(f2 instanceof Foo2);
|