UNPKG

716 BJavaScriptView Raw
1var t = require('../test-lib/test.js');
2var assert = require('assert');
3
4describe('Launder', function() {
5
6 this.timeout(t.timeout);
7
8 after(function(done) {
9 return t.destroy(apos, done);
10 });
11
12 var apos;
13
14 it('should exist on the apos object', function(done) {
15 apos = require('../index.js')({
16 root: module,
17 shortName: 'test',
18 afterInit: function(callback) {
19 assert(apos.launder);
20 return done();
21 }
22 });
23 });
24
25 // Launder has plenty of unit tests of its own. All we're
26 // doing here is a sanity test that we're really
27 // hooked up to launder.
28
29 it('should launder a number to a string', function() {
30 assert(apos.launder.string(5) === '5');
31 });
32});