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';
|
||||
|
||||
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) {
|
Loading…
Reference in New Issue
Block a user