From 83bfcde9345c95f68f3fc4f96c249b66f492fe94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 14 Sep 2021 19:34:35 +0200 Subject: [PATCH] fix: convert event-hook.test.js to typescript --- src/lib/{event-hook.test.js => event-hook.test.ts} | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) rename src/lib/{event-hook.test.js => event-hook.test.ts} (79%) diff --git a/src/lib/event-hook.test.js b/src/lib/event-hook.test.ts similarity index 79% rename from src/lib/event-hook.test.js rename to src/lib/event-hook.test.ts index 3ed0dd2ca1..447f49043c 100644 --- a/src/lib/event-hook.test.js +++ b/src/lib/event-hook.test.ts @@ -1,16 +1,13 @@ -'use strict'; - -const { EventEmitter } = require('events'); - -const eventStore = new EventEmitter(); -const { addEventHook } = require('./event-hook'); -const { +import { EventEmitter } from 'events'; +import { addEventHook } from './event-hook'; +import { FEATURE_CREATED, FEATURE_UPDATED, FEATURE_ARCHIVED, FEATURE_REVIVED, -} = require('./types/events'); +} from './types/events'; +const eventStore = new EventEmitter(); const o = {}; function testHook(feature, data) {