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:
parent
436f295dc5
commit
83bfcde934
@ -1,16 +1,13 @@
|
|||||||
'use strict';
|
import { EventEmitter } from 'events';
|
||||||
|
import { addEventHook } from './event-hook';
|
||||||
const { EventEmitter } = require('events');
|
import {
|
||||||
|
|
||||||
const eventStore = new EventEmitter();
|
|
||||||
const { addEventHook } = require('./event-hook');
|
|
||||||
const {
|
|
||||||
FEATURE_CREATED,
|
FEATURE_CREATED,
|
||||||
FEATURE_UPDATED,
|
FEATURE_UPDATED,
|
||||||
FEATURE_ARCHIVED,
|
FEATURE_ARCHIVED,
|
||||||
FEATURE_REVIVED,
|
FEATURE_REVIVED,
|
||||||
} = require('./types/events');
|
} from './types/events';
|
||||||
|
|
||||||
|
const eventStore = new EventEmitter();
|
||||||
const o = {};
|
const o = {};
|
||||||
|
|
||||||
function testHook(feature, data) {
|
function testHook(feature, data) {
|
Loading…
Reference in New Issue
Block a user