Skip to content

Commit

Permalink
Remove raw JSI funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Sep 16, 2024
1 parent 44ae088 commit 05776c2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions example/src/getTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,11 +721,17 @@ export function getTests(
.didReturn('object')
.toBeArray()
),
createTest('Call Raw JSI Func', () =>
// @ts-expect-error
it(() => testObject.rawJsiFunc(55, false, 'hello', { obj: true }))
.didNotThrow()
.equals([55, false, 'hello', { obj: true }])
),
...('rawJsiFunc' in testObject
? [
createTest('Call Raw JSI Func', () =>
// @ts-expect-error
it(() => testObject.rawJsiFunc(55, false, 'hello', { obj: true }))
.didNotThrow()
.equals([55, false, 'hello', { obj: true }])
),
]
: [
// Swift/Kotlin Test Objects don't have raw JSI functions!
]),
]
}

0 comments on commit 05776c2

Please sign in to comment.