website refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { AdminTrustReasonCode, type AdminTrustReasonCodeValue } from './AdminTrustReasonCode';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { AdminTrustReasonCode, type AdminTrustReasonCodeValue } from './AdminTrustReasonCode';
|
||||
|
||||
describe('AdminTrustReasonCode', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DrivingReasonCode, type DrivingReasonCodeValue } from './DrivingReasonCode';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { DrivingReasonCode, type DrivingReasonCodeValue } from './DrivingReasonCode';
|
||||
|
||||
describe('DrivingReasonCode', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as mod from '@core/identity/domain/value-objects/EmailAddress';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('identity/domain/value-objects/EmailAddress.ts', () => {
|
||||
it('imports', () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ValueObject } from '@core/shared/domain/ValueObject';
|
||||
import type { EmailValidationResult } from '../types/EmailAddress';
|
||||
import { validateEmail, isDisposableEmail } from '../types/EmailAddress';
|
||||
import { isDisposableEmail, validateEmail } from '../types/EmailAddress';
|
||||
|
||||
export interface EmailAddressProps {
|
||||
value: string;
|
||||
@@ -44,5 +44,6 @@ export class EmailAddress implements ValueObject<EmailAddressProps> {
|
||||
}
|
||||
}
|
||||
|
||||
export { isDisposableEmail, validateEmail } from '../types/EmailAddress';
|
||||
export type { EmailValidationResult } from '../types/EmailAddress';
|
||||
export { validateEmail, isDisposableEmail } from '../types/EmailAddress';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { ExternalRating } from './ExternalRating';
|
||||
import { GameKey } from './GameKey';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
|
||||
describe('ExternalRating', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ExternalRatingProvenance } from './ExternalRatingProvenance';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { ExternalRatingProvenance } from './ExternalRatingProvenance';
|
||||
|
||||
describe('ExternalRatingProvenance', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { GameKey } from './GameKey';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { GameKey } from './GameKey';
|
||||
|
||||
describe('GameKey', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as mod from '@core/identity/domain/value-objects/PasswordHash';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('identity/domain/value-objects/PasswordHash.ts', () => {
|
||||
it('imports', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import bcrypt from 'bcrypt';
|
||||
import type { ValueObject } from '@core/shared/domain/ValueObject';
|
||||
import bcrypt from 'bcrypt';
|
||||
|
||||
export interface PasswordHashProps {
|
||||
value: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { RatingDelta } from './RatingDelta';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { RatingDelta } from './RatingDelta';
|
||||
|
||||
describe('RatingDelta', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { RatingDimensionKey } from './RatingDimensionKey';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { RatingDimensionKey } from './RatingDimensionKey';
|
||||
|
||||
describe('RatingDimensionKey', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { RatingEventId } from './RatingEventId';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { RatingEventId } from './RatingEventId';
|
||||
|
||||
describe('RatingEventId', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ValueObject } from '@core/shared/domain/ValueObject';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
|
||||
export interface RatingEventIdProps {
|
||||
value: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { RatingReference } from './RatingReference';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { RatingReference } from './RatingReference';
|
||||
|
||||
describe('RatingReference', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { RatingValue } from './RatingValue';
|
||||
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
|
||||
import { RatingValue } from './RatingValue';
|
||||
|
||||
describe('RatingValue', () => {
|
||||
describe('create', () => {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as mod from '@core/identity/domain/value-objects/UserId';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('identity/domain/value-objects/UserId.ts', () => {
|
||||
it('imports', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import type { ValueObject } from '@core/shared/domain/ValueObject';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
export interface UserIdProps {
|
||||
value: string;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as mod from '@core/identity/domain/value-objects/UserRating';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('identity/domain/value-objects/UserRating.ts', () => {
|
||||
it('imports', () => {
|
||||
|
||||
Reference in New Issue
Block a user