From ce2ec94e967b881ff49633f02ebfb87e295d516d Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Fri, 11 Nov 2011 14:29:23 -0800 Subject: [PATCH] Added utils.escape(html) test --- test/utils.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/utils.js b/test/utils.js index 3f0758f4..4ddb7d5d 100644 --- a/test/utils.js +++ b/test/utils.js @@ -18,8 +18,14 @@ describe('utils.isAbsolute()', function(){ describe('utils.flatten(arr)', function(){ it('should flatten an array', function(){ var arr = ['one', ['two', ['three', 'four'], 'five']]; - utils - .flatten(arr) + utils.flatten(arr) .should.eql(['one', 'two', 'three', 'four', 'five']); }) +}) + +describe('utils.escape(html)', function(){ + it('should escape html entities', function(){ + utils.escape('