mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat: restructure i18n into a dir
This commit is contained in:
@@ -23,7 +23,7 @@ import { SentMessageInfo } from 'nodemailer';
|
||||
import { AttachmentRepository } from '@/attachment/repositories/attachment.repository';
|
||||
import { AttachmentModel } from '@/attachment/schemas/attachment.schema';
|
||||
import { AttachmentService } from '@/attachment/services/attachment.service';
|
||||
import { ExtendedI18nService } from '@/extended-i18n.service';
|
||||
import { I18nService } from '@/i18n/services/i18n.service';
|
||||
import { LoggerService } from '@/logger/logger.service';
|
||||
import { installUserFixtures } from '@/utils/test/fixtures/user';
|
||||
import {
|
||||
@@ -106,7 +106,7 @@ describe('AuthController', () => {
|
||||
EventEmitter2,
|
||||
ValidateAccountService,
|
||||
{
|
||||
provide: ExtendedI18nService,
|
||||
provide: I18nService,
|
||||
useValue: {
|
||||
t: jest.fn().mockImplementation((t) => t),
|
||||
},
|
||||
|
||||
@@ -20,7 +20,7 @@ import { SentMessageInfo } from 'nodemailer';
|
||||
import { AttachmentRepository } from '@/attachment/repositories/attachment.repository';
|
||||
import { AttachmentModel } from '@/attachment/schemas/attachment.schema';
|
||||
import { AttachmentService } from '@/attachment/services/attachment.service';
|
||||
import { ExtendedI18nService } from '@/extended-i18n.service';
|
||||
import { I18nService } from '@/i18n/services/i18n.service';
|
||||
import { LoggerService } from '@/logger/logger.service';
|
||||
import { IGNORED_TEST_FIELDS } from '@/utils/test/constants';
|
||||
import { installPermissionFixtures } from '@/utils/test/fixtures/permission';
|
||||
@@ -110,7 +110,7 @@ describe('UserController', () => {
|
||||
AttachmentRepository,
|
||||
ValidateAccountService,
|
||||
{
|
||||
provide: ExtendedI18nService,
|
||||
provide: I18nService,
|
||||
useValue: {
|
||||
t: jest.fn().mockImplementation((t) => t),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user