Permalink
Browse files

add a (visual) test for the `.decodeKludges` method

  • Loading branch information...
1 parent a1b0e05 commit 18babdda0f9f0110d2ad57d293abf1a7bf0b638f @Mithgol committed Jun 18, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/test.js
View
@@ -108,10 +108,13 @@ describe('Fidonet JAM', function(){
);
assert.equal( blog.encodingFromHeader(header), 'cp866' );
+ console.log('\nKludges of the '+headSampleth+' header:');
+ console.log( blog.decodeKludges(header) );
+
blog.decodeMessage(header, function(err, messageText){
if (err) throw err;
- console.log('The '+headSampleth+' message (decoded):');
+ console.log('\nThe '+headSampleth+' message (decoded):');
console.log(util.inspect(
messageText, false, Infinity, true
));

0 comments on commit 18babdd

Please sign in to comment.