website refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { IAchievementRepository } from '@core/identity/domain/repositories/AchievementRepository';
|
||||
import type { AchievementRepository } from '@core/identity/domain/repositories/AchievementRepository';
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
import { beforeEach, describe, expect, it, vi, afterEach } from 'vitest';
|
||||
import { ACHIEVEMENT_REPOSITORY_TOKEN } from './AchievementPersistenceTokens';
|
||||
|
||||
describe('AchievementPersistenceModule', () => {
|
||||
@@ -27,7 +27,7 @@ describe('AchievementPersistenceModule', () => {
|
||||
imports: [AchievementPersistenceModule],
|
||||
}).compile();
|
||||
|
||||
const repository = module.get<IAchievementRepository>(ACHIEVEMENT_REPOSITORY_TOKEN);
|
||||
const repository = module.get<AchievementRepository>(ACHIEVEMENT_REPOSITORY_TOKEN);
|
||||
// The adapter should provide the domain interface methods
|
||||
expect(repository).toBeDefined();
|
||||
expect(typeof repository.createAchievement).toBe('function');
|
||||
@@ -50,7 +50,7 @@ describe('AchievementPersistenceModule', () => {
|
||||
imports: [AchievementPersistenceModule],
|
||||
}).compile();
|
||||
|
||||
const repository = module.get<IAchievementRepository>(ACHIEVEMENT_REPOSITORY_TOKEN);
|
||||
const repository = module.get<AchievementRepository>(ACHIEVEMENT_REPOSITORY_TOKEN);
|
||||
// The adapter should provide the domain interface methods
|
||||
expect(repository).toBeDefined();
|
||||
expect(typeof repository.createAchievement).toBe('function');
|
||||
@@ -68,7 +68,7 @@ describe('AchievementPersistenceModule', () => {
|
||||
imports: [AchievementPersistenceModule],
|
||||
}).compile();
|
||||
|
||||
const repository = module.get<IAchievementRepository>(ACHIEVEMENT_REPOSITORY_TOKEN);
|
||||
const repository = module.get<AchievementRepository>(ACHIEVEMENT_REPOSITORY_TOKEN);
|
||||
// The adapter should provide the domain interface methods
|
||||
expect(repository).toBeDefined();
|
||||
expect(typeof repository.createAchievement).toBe('function');
|
||||
|
||||
Reference in New Issue
Block a user