Skip to content

Commit

Permalink
Rename testing files. More easy to search
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 20, 2016
1 parent bcc7de6 commit 0a269fd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions test/xray_driver_spec.js
@@ -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()
})
})
})
20 changes: 3 additions & 17 deletions test/index.js → test/xray_spec.js
@@ -1,11 +1,10 @@
/* global it, xit, describe, xdescribe */
/* global it, xit, describe */

/**
* Module dependencies
*/

var m = require('multiline').stripIndent
var phantom = require('x-ray-phantom')
var concat = require('concat-stream')
var read = require('fs').readFileSync
var cheerio = require('cheerio')
Expand All @@ -25,7 +24,7 @@ var url = 'http://lapwinglabs.github.io/static/'
* Tests
*/

describe('Xray()', function () {
describe('Xray basics', function () {
it('should work with the kitchen sink', function (done) {
var x = Xray()
x({
Expand Down Expand Up @@ -264,7 +263,7 @@ describe('Xray()', function () {
})

describe('.format()', function () {
it('should support adding formatters', function () {
xit('should support adding formatters', function () {
// TODO
})
})
Expand Down Expand Up @@ -359,17 +358,4 @@ describe('Xray()', function () {
})
})
})

xdescribe('.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()
})
})
})
})

0 comments on commit 0a269fd

Please sign in to comment.