Skip to content

Commit 64820d3

Browse files
committed
fix merged suggestions
1 parent d68a380 commit 64820d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/candid/src/idl.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,31 +703,31 @@ test('should decode matching optional fields if wire type contains additional fi
703703
describe('IDL opt variant decoding', () => {
704704
it('should handle the first of three variants', () => {
705705
testDecode(
706-
Record({ a: Opt(Variant({ x: Null, y: Null, z: Null })) }),
706+
IDL.Record({ a: IDL.Opt(IDL.Variant({ x: IDL.Null, y: IDL.Null, z: IDL.Null })) }),
707707
{ a: [{ x: null }] },
708708
'4449444c036c0161016e026b03787f797f7a7f01000100', // Motoko: {a = ?#x} : {a : ?{#x;#y;#z}},
709709
'same variant under opt x',
710710
);
711711
});
712712
it('should handle the third of three variants', () => {
713713
testDecode(
714-
Record({ a: Opt(Variant({ x: Null, y: Null, z: Null })) }),
714+
IDL.Record({ a: IDL.Opt(IDL.Variant({ x: IDL.Null, y: IDL.Null, z: IDL.Null })) }),
715715
{ a: [{ z: null }] },
716716
'4449444c036c0161016e026b03787f797f7a7f01000102', // Motoko: {a = ?#z} : {a : ?{#x;#y;#z}}
717717
'same variant under opt z',
718718
);
719719
});
720720
it('should handle the first of two variants', () => {
721721
testDecode(
722-
Record({ a: Opt(Variant({ x: Null, y: Null })) }),
722+
IDL.Record({ a: IDL.Opt(IDL.Variant({ x: IDL.Null, y: IDL.Null })) }),
723723
{ a: [{ x: null }] },
724724
'4449444c036c0161016e026b03787f797f7a7f01000100', // Motoko: {a = ?#x} : {a : ?{#x;#y;#z}}
725725
'extended variant under opt expected tag',
726726
);
727727
});
728728
it('should handle the option when the option is empty', () => {
729729
testDecode(
730-
Record({ a: Opt(Variant({ x: Null, y: Null })) }),
730+
IDL.Record({ a: IDL.Opt(IDL.Variant({ x: IDL.Null, y: IDL.Null })) }),
731731
{ a: [] },
732732
'4449444c036c0161016e026b03787f797f7a7f01000102', // Motoko: {a = ?#z} : {a : ?{#x;#y;#z}}
733733
'extended variant under opt unexpected tag - defaulting',

0 commit comments

Comments
 (0)