Skip to content

Commit

Permalink
Rearrange test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav-olsen-groupone committed Mar 4, 2019
1 parent 0bd15d0 commit 69f1a6a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/express.js → test/express.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ var expect = require('unexpected')
})
})
var sinon = require('sinon')
var path = require('path')
var express = require('express')
var passError = require('passerror')
var hijackResponse = require('../')
var hijackResponse = require('../lib/hijackResponse')

describe('Express Integration Tests', function () {
it('simple case', function () {
Expand Down Expand Up @@ -159,7 +160,7 @@ describe('Express Integration Tests', function () {
}))
next()
})
.use(express.static(__dirname)),
.use(express.static(path.resolve(__dirname, 'fixtures'))),
'to yield exchange', {
request: 'GET /bigfile.txt',
response: { body: /^0{1999998}$/ }
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/hijackResponse.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* global describe, it, beforeEach, afterEach */
var expect = require('./unexpected-with-plugins')
var expect = require('./helpers/unexpected-with-plugins')
var passError = require('passerror')
var http = require('http')
var hijackResponse = require('../')
Expand Down

0 comments on commit 69f1a6a

Please sign in to comment.