We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a41f513 commit b0c2b01Copy full SHA for b0c2b01
1 file changed
cmd/crates/soroban-spec-typescript/ts-tests/src/test-custom-types.ts
@@ -162,11 +162,9 @@ test('tuple', async t => {
162
})
163
164
test('option', async t => {
165
- // this makes sense
166
t.deepEqual((await contract.option({ option: 1 })).result, 1)
167
168
- // this passes but shouldn't
169
- t.deepEqual((await contract.option({ option: undefined })).result, undefined)
+ t.deepEqual((await contract.option({ option: undefined })).result, null)
170
171
// this is the behavior we probably want, but fails
172
// t.deepEqual(await contract.option(), undefined) // typing and implementation require the object
0 commit comments