Permalink
Browse files

Add tests for last contribution

  • Loading branch information...
1 parent 23d2870 commit 3db0763ea54860e1f5b25d0d44232ff7bfd7c7ba @rafeca committed Feb 11, 2014
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/prettyjson_spec.js
View
@@ -231,6 +231,18 @@ describe('Printing numbers, booleans and other objects', function() {
' ' + 'message: '.green + ' foo'
].join('\n'));
});
+
+ it('should print serializable items in an array inline', function() {
+ var output = prettyjson.render([ 'a', 3, null, true, false ]);
+
+ output.should.equal([
+ '- '.green + 'a',
+ '- '.green + '3'.blue,
+ '- '.green + 'null'.grey,
+ '- '.green + 'true'.green,
+ '- '.green + 'false'.red
+ ].join('\n'));
+ });
});
describe('prettyjson.renderString() method', function(){

0 comments on commit 3db0763

Please sign in to comment.