Permalink
Browse files

Adding unit test for parser decideVal

  • Loading branch information...
1 parent d0967fa commit 90b4821f27a0d812f9abb065d1389153bbe631e6 @squeeks committed Mar 7, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/decide.js
View
@@ -0,0 +1,7 @@
+var syslogParser = require('../lib/glossy/parse.js'),
+ assert = require('assert');
+
+assert.ok(syslogParser, 'parser loaded');
+assert.equal(syslogParser.decideValue(1), "1");
+assert.equal(syslogParser.decideValue('-'), null);
+assert.equal(syslogParser.decideValue(''), '');

0 comments on commit 90b4821

Please sign in to comment.