UNPKG

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