Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 02d4dbb

Browse files
committed
fix broken type test
strange that `instanceof String` doesn't actually catch a string
1 parent ad297a4 commit 02d4dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/dataunion/withdraw.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const testWithdraw = async (
137137
log(`Balance before: ${balanceBefore}. Withdrawing tokens...`)
138138

139139
let ret = await withdraw(dataUnion.getAddress(), memberClient, memberWallet, adminClient)
140-
if (ret instanceof String) {
140+
if (typeof ret === 'string') {
141141
log(`Transporting message "${ret}"`)
142142
ret = await dataUnion.transportMessage(String(ret))
143143
}

0 commit comments

Comments
 (0)