remove not used enum value

This commit is contained in:
einhornimmond 2025-10-14 14:57:17 +02:00
parent 2f69771e72
commit 044ff3358c
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@ export enum CommunityHandshakeStateType {
START_COMMUNITY_AUTHENTICATION = 'START_COMMUNITY_AUTHENTICATION',
START_OPEN_CONNECTION_CALLBACK = 'START_OPEN_CONNECTION_CALLBACK',
START_AUTHENTICATION = 'START_AUTHENTICATION',
OPEN_CONNECTION_CALLBACK = 'OPEN_CONNECTION_CALLBACK',
SUCCESS = 'SUCCESS',
FAILED = 'FAILED',

View File

@ -56,7 +56,7 @@ describe('communityHandshakes', () => {
await createCommunityHandshakeState(publicKey.asBuffer())
const communityHandshakeState = await findPendingCommunityHandshake(publicKey, '1_0')
expect(communityHandshakeState).toBeDefined()
communityHandshakeState!.status = CommunityHandshakeStateType.OPEN_CONNECTION_CALLBACK
communityHandshakeState!.status = CommunityHandshakeStateType.START_OPEN_CONNECTION_CALLBACK
await communityHandshakeState!.save()
const communityHandshakeState2 = await findPendingCommunityHandshake(publicKey, '1_0')
const states = await DbCommunityHandshakeState.find()
@ -64,7 +64,7 @@ describe('communityHandshakes', () => {
expect(communityHandshakeState2).toMatchObject({
publicKey: publicKey.asBuffer(),
apiVersion: '1_0',
status: CommunityHandshakeStateType.OPEN_CONNECTION_CALLBACK,
status: CommunityHandshakeStateType.START_OPEN_CONNECTION_CALLBACK,
handshakeId: 1
})
})