Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbou committed Mar 4, 2015
1 parent bae1926 commit 2d9edc6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/x-ray.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,16 @@ describe('x-ray', function() {
return subs('<a href="{link}">{thumb}</a>', obj);
}
})

it('should support url without schemes', function(done) {
xray('http://mat.io')
.select(['link[href]'])
.run(function(err, arr) {
if (err) return done(err);
assert.equal('http://mat.io/favicon.ico', arr[0])
done();
})
})
})

/**
Expand Down

0 comments on commit 2d9edc6

Please sign in to comment.