소스 검색

fix(domain-core): remove unused content types

Karol Sójko 1 년 전
부모
커밋
71624f1897
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      packages/domain-core/src/Domain/Common/ContentType.spec.ts
  2. 0 2
      packages/domain-core/src/Domain/Common/ContentType.ts

+ 2 - 2
packages/domain-core/src/Domain/Common/ContentType.spec.ts

@@ -31,9 +31,9 @@ describe('ContentType', () => {
   })
 
   it('should fallback to the value if the display name is not found', () => {
-    const valueOrError = ContentType.create(ContentType.TYPES.Unknown)
+    const valueOrError = ContentType.create(ContentType.TYPES.EncryptedStorage)
 
     expect(valueOrError.isFailed()).toBeFalsy()
-    expect(valueOrError.getValue().getDisplayName()).toEqual('Unknown')
+    expect(valueOrError.getValue().getDisplayName()).toEqual('SN|EncryptedStorage')
   })
 })

+ 0 - 2
packages/domain-core/src/Domain/Common/ContentType.ts

@@ -14,7 +14,6 @@ export class ContentType extends ValueObject<ContentTypeProps> {
     RootKey: 'SN|RootKey|NoSync',
     ItemsKey: 'SN|ItemsKey',
     EncryptedStorage: 'SN|EncryptedStorage',
-    Privileges: 'SN|Privileges',
     Note: 'Note',
     Tag: 'Tag',
     SmartView: 'SN|SmartTag',
@@ -29,7 +28,6 @@ export class ContentType extends ValueObject<ContentTypeProps> {
     FilesafeFileMetadata: 'SN|FileSafe|FileMetadata',
     FilesafeIntegration: 'SN|FileSafe|Integration',
     ExtensionRepo: 'SN|ExtensionRepo',
-    Unknown: 'Unknown',
   }
 
   private readonly displayNamesMap: Partial<Record<string, string>> = {