Skip to content

Commit

Permalink
Test that non-cb.
Browse files Browse the repository at this point in the history
Added a test to make sure that if you don't supply a callback that it
returns the expected parse (since this module is sync).

Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  • Loading branch information
ncb000gt committed Nov 7, 2012
1 parent a859651 commit 808461b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/parse.js
Expand Up @@ -140,5 +140,10 @@ describe('bcrypt', function() {
parse.should.equal('<b><i><u>Hai</u></i></b>');
});
});

it('should parse and return rather than callback', function() {
var parse = bbcode.parse('[b][i][u]Hai[/u][/i][/b]');
parse.should.equal('<b><i><u>Hai</u></i></b>');
});
});
});

0 comments on commit 808461b

Please sign in to comment.