1 | /**
|
2 | * Test case for inline.
|
3 | * Runs with nodeunit.
|
4 | */
|
5 |
|
6 | var inline = require('../lib/inline.js');
|
7 |
|
8 | exports.setUp = function(done) {
|
9 | done();
|
10 | };
|
11 |
|
12 | exports.tearDown = function(done) {
|
13 | done();
|
14 | };
|
15 |
|
16 | exports['Inline'] = function(test){
|
17 | var text = inline('foo\nbar', {trim:true, joiner:'a'});
|
18 | test.equal(text, 'fooabar');
|
19 | test.done();
|
20 | };
|
21 |
|