|
@@ -31,6 +31,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue()
|
|
}).getValue()
|
|
|
|
|
|
sharedVaultUserRepository = {} as jest.Mocked<SharedVaultUserRepositoryInterface>
|
|
sharedVaultUserRepository = {} as jest.Mocked<SharedVaultUserRepositoryInterface>
|
|
@@ -115,6 +116,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue()
|
|
}).getValue()
|
|
sharedVaultUserRepository.findByUserUuidAndSharedVaultUuid = jest.fn().mockResolvedValue(sharedVaultUser)
|
|
sharedVaultUserRepository.findByUserUuidAndSharedVaultUuid = jest.fn().mockResolvedValue(sharedVaultUser)
|
|
|
|
|
|
@@ -140,6 +142,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
.mockReturnValueOnce(
|
|
.mockReturnValueOnce(
|
|
@@ -148,6 +151,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
})
|
|
})
|
|
@@ -203,6 +207,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
.mockReturnValueOnce(null)
|
|
.mockReturnValueOnce(null)
|
|
@@ -230,6 +235,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
.mockReturnValueOnce(
|
|
.mockReturnValueOnce(
|
|
@@ -238,6 +244,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
|
|
|
|
@@ -281,6 +288,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
.mockReturnValueOnce(
|
|
.mockReturnValueOnce(
|
|
@@ -289,6 +297,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
|
|
|
|
@@ -315,6 +324,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
.mockReturnValueOnce(
|
|
.mockReturnValueOnce(
|
|
@@ -323,6 +333,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
|
|
|
|
@@ -349,6 +360,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
.mockReturnValueOnce(
|
|
.mockReturnValueOnce(
|
|
@@ -357,6 +369,7 @@ describe('CreateSharedVaultFileValetToken', () => {
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
sharedVaultUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
userUuid: Uuid.create('00000000-0000-0000-0000-000000000000').getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
timestamps: Timestamps.create(123, 123).getValue(),
|
|
|
|
+ isDesignatedSurvivor: false,
|
|
}).getValue(),
|
|
}).getValue(),
|
|
)
|
|
)
|
|
|
|
|