Skip to content

Commit

Permalink
Updated Test
Browse files Browse the repository at this point in the history
This also removes a promise.catch that will never be reached
  • Loading branch information
nhalstead committed Feb 22, 2021
1 parent f592c8e commit f64c051
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions index.js
Expand Up @@ -171,13 +171,6 @@ function opengraphio(options) {

})
}, Promise.resolve({allRequests: []}))
.catch(err => {
if (callback) {
return callback(err, null);
} else {
return Promise.reject(err);
}
})
.then(results => {
if (callback) {
return callback(null, results);
Expand Down
2 changes: 1 addition & 1 deletion test/general.js
Expand Up @@ -275,7 +275,7 @@ describe('OpenGraph.io Client Tests', function(){
expect(result).to.exist;
expect(result.url).to.equal(retryUrl);
expect(result.allRequests.length).to.equal(0);
expect(result.hybridGraph.title).to.equal("Are you a human?");
expect(result.hybridGraph.title).to.exist;
done();
});

Expand Down

0 comments on commit f64c051

Please sign in to comment.