Skip to content

Commit

Permalink
all tests passing on android
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Nov 11, 2024
1 parent cbfaafe commit 01bb399
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions example/src/tests/clientTests.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Test, assert, createClients, delayToPropogate } from './test-utils'
import { Client, Conversation, ConversationId, ConversationVersion } from '../../../src/index'
import { Wallet } from 'ethers'
import RNFS from 'react-native-fs'

import { Test, assert, createClients } from './test-utils'
import { Client } from '../../../src/index'

export const clientTests: Test[] = []
let counter = 1
function test(name: string, perform: () => Promise<boolean>) {
Expand All @@ -12,7 +13,6 @@ function test(name: string, perform: () => Promise<boolean>) {
})
}


test('can make a client', async () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const keyBytes = new Uint8Array([
Expand Down
4 changes: 2 additions & 2 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ test('unpublished messages handling', async () => {
const isGroupAllowed = await alixClient.preferences.conversationConsentState(
boGroup.id
)
if (isGroupAllowed === 'allowed') {
if (isGroupAllowed !== 'allowed') {
throw new Error('Group should be allowed after preparing a message')
}

Expand Down Expand Up @@ -1129,7 +1129,7 @@ test('can group consent', async () => {
)

await bo.preferences.setConsentState(
new ConsentListEntry(group.id, 'group_id', 'denied')
new ConsentListEntry(group.id, 'conversation_id', 'denied')
)
const isDenied = await bo.preferences.conversationConsentState(group.id)
assert(isDenied === 'denied', `bo group should be denied but was ${isDenied}`)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ConsentListEntry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type ConsentState = 'allowed' | 'denied' | 'unknown'

export type ConsentListEntryType = 'address' | 'group_id' | 'inbox_id'
export type ConsentListEntryType = 'address' | 'conversation_id' | 'inbox_id'

export class ConsentListEntry {
value: string
Expand Down

0 comments on commit 01bb399

Please sign in to comment.