Skip to content

Commit

Permalink
adding test for #90
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bashford committed Jun 18, 2016
1 parent d54a1bb commit 1c42b8d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/url_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ var path = require("path");
describe("fromUrl tests", function() {
this.timeout(3000);

it("will properly extract files from sites with extensions that are misleading", function(done) {
var url = "http://apps.leg.wa.gov/billinfo/summary.aspx?bill=1276";
fromUrl(url, function( error, text ) {
expect(error).to.be.null;
expect(text).to.be.an('string');
expect(text.substring(0,100)).to.eql("");
done();
});
});

var test = function(ext, name, _text) {
it('will ' + ext + ' files', function(done) {
var url = "https://github.com/dbashford/textract/blob/master/test/files/" + name + "?raw=true";
Expand Down

0 comments on commit 1c42b8d

Please sign in to comment.