1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: convert event-hook.test.js to typescript

This commit is contained in:
Ivar Conradi Østhus 2021-09-14 19:34:35 +02:00
parent 436f295dc5
commit 83bfcde934
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

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