Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename testing files. More easy to search
- Loading branch information
Showing
4 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* global it, describe */ | ||
|
||
'use strict' | ||
|
||
var Xray = require('..') | ||
var phantom = require('x-ray-phantom') | ||
var assert = require('assert') | ||
|
||
describe('Xray.driver(fn)', function () { | ||
it('should support basic phantom', function (done) { | ||
var x = Xray() | ||
.driver(phantom()) | ||
|
||
x('http://www.google.com/ncr', 'title')(function (err, str) { | ||
if (err) return done(err) | ||
assert.equal('Google', str) | ||
done() | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters