https://github.com/ContentMine/quickscrape
Tip revision: 644e2fbcf8178f37b196a5727632ba3fb0c069a8 authored by Richard Smith on 30 May 2014, 01:35:08 UTC
Merge branch 'logging' of github.com:ContentMine/quickscrape into logging
Merge branch 'logging' of github.com:ContentMine/quickscrape into logging
Tip revision: 644e2fb
quickscrape_test.js
'use strict';
var scrape = require('../lib/scrape.js');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actual, expected, [message])
test.deepEqual(actual, expected, [message])
test.notDeepEqual(actual, expected, [message])
test.strictEqual(actual, expected, [message])
test.notStrictEqual(actual, expected, [message])
test.throws(block, [error], [message])
test.doesNotThrow(block, [error], [message])
test.ifError(value)
*/
exports['awesome'] = {
setUp: function(done) {
// setup here
done();
},
'no args': function(test) {
test.expect(1);
// tests here
test.equal('awesome', 'awesome', 'should be awesome.');
test.done();
},
};