UNPKG

fast-feed

Version:

Node.JS module for parsing newsfeeds (RSS 2 and Atom). It should be one of the fastest feed parsers. Uses [RapidXML](http://rapidxml.sourceforge.net/).

20 lines (17 loc) 449 B
var assert = require('assert'); var parser = require('../'); describe('Fast-feed', function() { it('should throw on invalid input', function() { try { parser.parse('<<<<>'); } catch (err) { assert.ok(err); } }); it('should set error on invalid input', function(done) { parser.parse('<<<<>', function(err) { assert.ok(err); done(); }); }); });