forked from docusign/code-examples-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.js~
More file actions
30 lines (24 loc) · 702 Bytes
/
basic.js~
File metadata and controls
30 lines (24 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';
var blinker = require('..');
var Code = require('code');
var Lab = require('lab');
var lab = exports.lab = Lab.script();
var describe = lab.describe;
var it = lab.it;
var before = lab.before;
var after = lab.after;
var expect = Code.expect;
describe('blinker exports', function () {
it('exports an object', function(done) {
expect(blinker).to.be.instanceOf(Object);
done();
});
it('exports an object with method "use"', function(done) {
expect(blinker.use).to.be.instanceOf(Function);
done();
});
it('produces a blinker', function (done) {
expect(blinker.use({})).to.be.instanceof(Object);
done();
});
});