1 | var t = require('../test-lib/test.js');
|
2 | var assert = require('assert');
|
3 |
|
4 | describe('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 |
|
26 |
|
27 |
|
28 |
|
29 | it('should launder a number to a string', function() {
|
30 | assert(apos.launder.string(5) === '5');
|
31 | });
|
32 | });
|