Skip to content

Commit

Permalink
refactor(mocks): use more complete mock generators
Browse files Browse the repository at this point in the history
  • Loading branch information
C0ZEN committed May 20, 2021
1 parent cb38807 commit 22b7554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ServiceNameEnum } from '../../../../../enums/service-name.enum';
import { CoreEventService } from '../../../../core/services/core-event.service';
import { IAnyDiscordMessage } from '../../types/any-discord-message';
import { DiscordMessageContentService } from '../helpers/discord-message-content.service';
import { createMock } from 'ts-auto-mock';
import { createHydratedMock } from 'ts-auto-mock';

describe(`DiscordMessageAnyQuestionPineapplePizzaService`, (): void => {
let service: DiscordMessageAnyQuestionPineapplePizzaService;
Expand Down Expand Up @@ -237,7 +237,7 @@ describe(`DiscordMessageAnyQuestionPineapplePizzaService`, (): void => {

beforeEach((): void => {
service = new DiscordMessageAnyQuestionPineapplePizzaService();
anyDiscordMessage = createMock<IAnyDiscordMessage>({
anyDiscordMessage = createHydratedMock<IAnyDiscordMessage>({
content: `dummy-content`,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ServiceNameEnum } from '../../../../../enums/service-name.enum';
import { CoreEventService } from '../../../../core/services/core-event.service';
import { IAnyDiscordMessage } from '../../types/any-discord-message';
import { DiscordMessageContentService } from '../helpers/discord-message-content.service';
import { createMock } from 'ts-auto-mock';
import { createHydratedMock } from 'ts-auto-mock';

describe(`DiscordMessageSimpleBasicService`, (): void => {
let service: DiscordMessageSimpleBasicService;
Expand Down Expand Up @@ -279,7 +279,7 @@ describe(`DiscordMessageSimpleBasicService`, (): void => {

beforeEach((): void => {
service = new DiscordMessageSimpleBasicService();
anyDiscordMessage = createMock<IAnyDiscordMessage>({
anyDiscordMessage = createHydratedMock<IAnyDiscordMessage>({
content: `dummy-content`,
});

Expand Down

0 comments on commit 22b7554

Please sign in to comment.