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) {