mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-21 22:50:49 -06:00
-added docs unit tests -validate external urls -validate local urls by looking up their sidebar data translation -TODO: validate that hashes exist on the suggested page
18 lines
288 B
CoffeeScript
18 lines
288 B
CoffeeScript
nock = require("nock")
|
|
chai = require("chai")
|
|
sinon = require("sinon")
|
|
sinonChai = require("sinon-chai")
|
|
|
|
chai.use(sinonChai)
|
|
|
|
global.nock = nock
|
|
global.expect = chai.expect
|
|
|
|
beforeEach ->
|
|
nock.disableNetConnect()
|
|
|
|
@sandbox = sinon.sandbox.create()
|
|
|
|
afterEach ->
|
|
@sandbox.restore()
|