mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 12:59:14 +00:00
fix: remove type assertion
This commit is contained in:
parent
4e80a0a215
commit
87e5477e8e
@ -9,7 +9,6 @@
|
|||||||
import { EventEmitter2 } from '@nestjs/event-emitter';
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
||||||
import { Test, TestingModule } from '@nestjs/testing';
|
import { Test, TestingModule } from '@nestjs/testing';
|
||||||
|
|
||||||
import { BlockMessage } from '@/chat/schemas/types/message';
|
|
||||||
import { I18nService } from '@/i18n/services/i18n.service';
|
import { I18nService } from '@/i18n/services/i18n.service';
|
||||||
import { BasePlugin } from '@/plugins/base-plugin.service';
|
import { BasePlugin } from '@/plugins/base-plugin.service';
|
||||||
import { PluginService } from '@/plugins/plugins.service';
|
import { PluginService } from '@/plugins/plugins.service';
|
||||||
@ -155,7 +154,7 @@ describe('TranslationService', () => {
|
|||||||
model: 'String 1',
|
model: 'String 1',
|
||||||
context: ['String 2', 'String 3'],
|
context: ['String 2', 'String 3'],
|
||||||
},
|
},
|
||||||
} as unknown as BlockMessage,
|
},
|
||||||
options: {},
|
options: {},
|
||||||
attachedBlock: null,
|
attachedBlock: null,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user