mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-14 13:20:29 -05:00
fix decaf header, server/test/e2e
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import helper from '../../spec_helper'
|
||||
const { expect, root } = helper as {expect: Chai.ExpectStatic, root: string}
|
||||
import { expect, root } from '../../spec_helper'
|
||||
|
||||
require('mocha-banner').register()
|
||||
const chalk = require('chalk').default
|
||||
|
||||
@@ -1,20 +1,8 @@
|
||||
/* eslint-disable
|
||||
no-unused-vars,
|
||||
*/
|
||||
// TODO: This file was created by bulk-decaffeinate.
|
||||
// Fix any style issues and re-enable lint.
|
||||
/*
|
||||
* decaffeinate suggestions:
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
require('../spec_helper')
|
||||
|
||||
const _ = require('lodash')
|
||||
const path = require('path')
|
||||
const Promise = require('bluebird')
|
||||
const appData = require(`${root}lib/util/app_data`)
|
||||
const konfig = require(`${root}lib/konfig`)
|
||||
const logger = require(`${root}lib/logger`)
|
||||
const exception = require(`${root}lib/exception`)
|
||||
|
||||
@@ -201,7 +189,7 @@ describe('lib/logger', () => {
|
||||
|
||||
describe('unhandledRejection', () => {
|
||||
it('passes error to defaultErrorHandler', () => {
|
||||
const defaultErrorHandler = sinon.stub(logger, 'defaultErrorHandler')
|
||||
sinon.stub(logger, 'defaultErrorHandler')
|
||||
|
||||
const handlers = process.listeners('unhandledRejection')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user