Permalink
Browse files

Adding structured data test.

This is also breaking thanks to the issue I found with our parser.
  • Loading branch information...
1 parent fc0922f commit a416ad073bdea1512705a0e8a9a2d3c3749e7e21 @squeeks committed Mar 7, 2013
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/structure_data.js
@@ -0,0 +1,13 @@
+var syslogParser = require('../lib/glossy/parse.js'),
+ assert = require('assert');
+
+assert.ok(syslogParser, 'parser loaded');
+var singleStructure = '[exampleSDID@32473 iut="3" eventSource="Application" eventID="1011"]';
+assert.deepEqual(syslogParser.parseStructure(singleStructure), {
+ 'exampleSDID@32473': {
+ iut: '3',
+ eventSource: 'Application',
+ eventID: '1011'
+ }
+});
+

0 comments on commit a416ad0

Please sign in to comment.