Permalink
Browse files

Test that non-cb.

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...
1 parent a859651 commit 808461b865bcb1e628c34aed537340ee249b1021 @ncb000gt committed Nov 7, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/parse.js
View
@@ -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.