Skip to content
This repository
Browse code

Fix failing test

  • Loading branch information...
commit eb8c744405f99e2f45ab61a3b31e656bfa575f27 1 parent 6263805
Dan MacTough authored October 05, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  test/parseUrl404.js
2  test/parseUrl404.js
@@ -8,7 +8,7 @@ describe('feedparser', function(){
8 8
     it('should return http error: getaddrinfo ENOENT', function(done) {
9 9
       this.timeout(10000);
10 10
       feedparser.parseUrl('http://nonexistingdomaincausinganerror.com/feed.rss', function (error, meta, articles) {
11  
-        assert.ifError(!error);
  11
+        assert(error instanceof Error, error.message);
12 12
         assert.equal(error.message, 'getaddrinfo ENOENT');
13 13
         done();
14 14
       });

0 notes on commit eb8c744

Please sign in to comment.
Something went wrong with that request. Please try again.