UNPKG

888 BJavaScriptView Raw
1'use strict';
2
3const testLib = require('../lib');
4
5const assert = require('assert');
6
7describe('Test Utils Exports', () => {
8 it('Expect', (done) => {
9 assert.ok(testLib.getExpect instanceof Function, 'getExpect is not a function');
10 assert.ok(testLib.getExpect() instanceof Function, 'getExpect() is not a function');
11
12 done();
13 });
14
15 it('Chai', (done) => {
16 assert.ok(testLib.getChai instanceof Function, 'getChai is not a function');
17 assert.ok(testLib.getChai() instanceof Object, 'getChai() is not an object');
18 assert.ifError(testLib.getChai() instanceof Function);
19
20 done();
21 });
22
23 it('Sinon', (done) => {
24 assert.ok(testLib.getSinon instanceof Function, 'getSinon is not a function');
25 assert.ok(testLib.getSinon() instanceof Object, 'getSinon is not a function');
26 assert.ifError(testLib.getSinon() instanceof Function);
27
28 done();
29 });
30});