From 2d3776844c899363d07e4c025767509a2ad9c65c Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Wed, 15 Jan 2020 23:07:51 +0100 Subject: [PATCH] Convert child-writer.spec.js to typescript Change-type: patch --- ...ild-writer.spec.js => child-writer.spec.ts} | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) rename tests/gui/modules/{child-writer.spec.js => child-writer.spec.ts} (63%) diff --git a/tests/gui/modules/child-writer.spec.js b/tests/gui/modules/child-writer.spec.ts similarity index 63% rename from tests/gui/modules/child-writer.spec.js rename to tests/gui/modules/child-writer.spec.ts index bccfec97..ec45fd1d 100644 --- a/tests/gui/modules/child-writer.spec.js +++ b/tests/gui/modules/child-writer.spec.ts @@ -14,15 +14,13 @@ * limitations under the License. */ -'use strict' +import { expect } from 'chai'; +import * as ipc from 'node-ipc'; -const m = require('mochainon') -const ipc = require('node-ipc') -// eslint-disable-next-line node/no-missing-require -require('../../../lib/gui/modules/child-writer') +import('../../../lib/gui/modules/child-writer'); -describe('Browser: childWriter', function () { - it('should have the ipc config set to silent', function () { - m.chai.expect(ipc.config.silent).to.be.true - }) -}) +describe('Browser: childWriter', function() { + it('should have the ipc config set to silent', function() { + expect(ipc.config.silent).to.be.true; + }); +});