fix decaf header, server/test/e2e

This commit is contained in:
Ben Kucera
2020-06-05 14:52:46 -04:00
parent 30137e534f
commit ea4c98d0dc
2 changed files with 2 additions and 15 deletions

View File

@@ -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

View File

@@ -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')