From 3acb970442b1ee714869b6d973b9dc6caf653410 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Mon, 11 May 2020 11:24:07 -0400 Subject: [PATCH] Decaf cleanup: simplify stubbed class --- .../js/HttpController/HttpControllerTests.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/services/document-updater/test/unit/js/HttpController/HttpControllerTests.js b/services/document-updater/test/unit/js/HttpController/HttpControllerTests.js index 18c74691bc..c913a107cd 100644 --- a/services/document-updater/test/unit/js/HttpController/HttpControllerTests.js +++ b/services/document-updater/test/unit/js/HttpController/HttpControllerTests.js @@ -2,13 +2,6 @@ no-return-assign, no-unused-vars, */ -// TODO: This file was created by bulk-decaffeinate. -// Fix any style issues and re-enable lint. -/* - * decaffeinate suggestions: - * DS206: Consider reworking classes to avoid initClass - * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md - */ const sinon = require('sinon') const chai = require('chai') const should = chai.should() @@ -33,15 +26,9 @@ describe('HttpController', function () { './Errors': Errors } }) - this.Metrics.Timer = Timer = (function () { - Timer = class Timer { - static initClass() { - this.prototype.done = sinon.stub() - } - } - Timer.initClass() - return Timer - })() + this.Metrics.Timer = class Timer {} + Timer.prototype.done = sinon.stub() + this.project_id = 'project-id-123' this.doc_id = 'doc-id-123' this.next = sinon.stub()