Skip to content

Commit 4af7d96

Browse files
committed
Add a test to ensure the library can be imported
1 parent 38c56d8 commit 4af7d96

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { module, test } from 'qunit';
2+
import td from 'testdouble';
3+
4+
module('testdouble import');
5+
6+
test('can import `testdouble`', function(assert) {
7+
const double = td.function();
8+
td.when(double('foo')).thenReturn('bar');
9+
10+
assert.equal(double('foo'), 'bar');
11+
});

0 commit comments

Comments
 (0)