-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.js
More file actions
31 lines (23 loc) · 755 Bytes
/
test.js
File metadata and controls
31 lines (23 loc) · 755 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
31
describe('docker-link', function () {
'use strict';
var assume = require('assume')
, Link = require('./');
it('is exported as function', function () {
assume(Link).is.a('function');
});
it('automatically uppercases the prefix', function () {
var link = new Link({ prefix: 'bar ' });
assume(link.prefix).to.equal('BAR');
});
it('allows the prefix to be supplied as string', function () {
var link = new Link('bar');
assume(link.prefix).to.equal('BAR');
});
describe('#get', function () {
it('returns an empty object if nothing is found', function () {
var link = new Link('bar');
assume(link.get('foo')).to.be.a('object');
assume(link.get('foo')).to.have.length(0);
});
});
});