https://github.com/ContentMine/quickscrape
Revision cc3879e05c3895d79a5842ce558fd47b428b2617 authored by Richard Smith-Unna on 31 March 2015, 09:06:28 UTC, committed by Richard Smith-Unna on 31 March 2015, 09:06:28 UTC
1 parent 9e36288
Tip revision: cc3879e05c3895d79a5842ce558fd47b428b2617 authored by Richard Smith-Unna on 31 March 2015, 09:06:28 UTC
fix error when missing log message
fix error when missing log message
Tip revision: cc3879e
eventParseSpec.js
var ep = require('../lib/eventparse.js')
, should = require('should');
describe("eventparse", function() {
describe("compose()", function() {
it("should compose a message with all relevant info", function() {
var event = 'scraper.downloadStarted'
, var1 = 'file.txt'
, var2 = 'http://place.com';
msg = ep.compose(event, var1, var2);
msg.should.match(/scraper/);
msg.should.match(/download started/);
msg.should.match(RegExp(var1));
msg.should.match(RegExp(var2));
});
});
});
Computing file changes ...