Skip to content

Commit 2d9edc6

Browse files
committed
add test
1 parent bae1926 commit 2d9edc6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/x-ray.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,16 @@ describe('x-ray', function() {
229229
return subs('<a href="{link}">{thumb}</a>', obj);
230230
}
231231
})
232+
233+
it('should support url without schemes', function(done) {
234+
xray('http://mat.io')
235+
.select(['link[href]'])
236+
.run(function(err, arr) {
237+
if (err) return done(err);
238+
assert.equal('http://mat.io/favicon.ico', arr[0])
239+
done();
240+
})
241+
})
232242
})
233243

234244
/**

0 commit comments

Comments
 (0)