UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

19 lines (17 loc) 414 B
//Runs tests for feeds var helper = require("./test-helper.js"), FeedHandler = require("../lib/FeedHandler.js"), fs = require("fs"), path = require("path"); helper.mochaTest("Feeds", __dirname, function(test, cb){ fs.readFile( path.join(__dirname, "Documents", test.file), function(err, file){ helper.writeToParser( new FeedHandler(cb), { xmlMode: true }, file.toString() ); } ); });