-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
418 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
apps/yggdrasil-discord-client/src/app/discord-bot/services/llmai/llmai.chat.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { Test, TestingModule } from '@nestjs/testing'; | ||
import { LLMAIChatService } from './llmai.chat.service'; | ||
import { AsgardLoggerSupplement } from '@asgard-hub/nest-winston'; | ||
import { MessageService } from '../message/message.service'; | ||
|
||
describe('LLMAIChatService', () => { | ||
let service: LLMAIChatService; | ||
|
||
beforeEach(async () => { | ||
const module: TestingModule = await Test.createTestingModule({ | ||
providers: [ | ||
{ | ||
provide: AsgardLoggerSupplement.LOGGER_HELPER_SERVICE, | ||
useValue: {}, | ||
}, | ||
{ | ||
provide: 'LLMAI_PACKAGE', | ||
useValue: { | ||
getService: jest.fn().mockImplementation(() => { | ||
return {}; | ||
}), | ||
}, | ||
}, | ||
{ | ||
provide: 'DISCORD_BOT_MODULE_OPTIONS', | ||
useValue: {}, | ||
}, | ||
{ | ||
provide: MessageService, | ||
useValue: {}, | ||
}, | ||
LLMAIChatService, | ||
], | ||
}).compile(); | ||
|
||
service = module.get<LLMAIChatService>(LLMAIChatService); | ||
}); | ||
|
||
it('should be defined', () => { | ||
expect(service).toBeDefined(); | ||
}); | ||
}); |
Oops, something went wrong.