瀏覽代碼

fix(domain-core): remove unused content types

Karol Sójko 1 年之前
父節點
當前提交
71624f1897

+ 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>> = {