mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-19 21:50:23 -06:00
18 lines
436 B
CoffeeScript
18 lines
436 B
CoffeeScript
chai = require("chai")
|
|
sinon = require("sinon")
|
|
Promise = require("bluebird")
|
|
sinonChai = require("sinon-chai")
|
|
sinonPromise = require("sinon-as-promised")(Promise)
|
|
|
|
global.request = require("request-promise")
|
|
global.supertest = require("supertest-as-promised")(Promise)
|
|
|
|
chai.use(sinonChai)
|
|
|
|
global.expect = chai.expect
|
|
|
|
beforeEach ->
|
|
@sandbox = sinon.sandbox.create()
|
|
|
|
afterEach ->
|
|
@sandbox.restore() |