Skip to content

Commit

Permalink
display update
Browse files Browse the repository at this point in the history
Signed-off-by: Lyon Lu <lyon@union.ai>
  • Loading branch information
lyonlu13 committed Oct 17, 2024
1 parent 116ebb3 commit 2823361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/oss-console/src/components/Literals/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function processBinary(binary?: Core.IBinary | null) {

return {
tag: `${tag}`,
value: "(unsupported tag type)",
value: "(binary data now shown)",
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ const scalarBinaryTestCases: TestCaseList<Core.IBinary> = {
value: { value: encode(testJson), tag: 'msgpack' },
expected: { result_var: { tag: 'msgpack', value: testJson } },
},
UNSUPPORTED_TAG: {
value: { tag: 'tag2', value: new Uint8Array([1, 2, 3, 4]) },
expected: { result_var: {
tag: "tag2",
value: "(unsupported tag type)",
}},
WITH_VAL: {
value: { value: new Uint8Array(), tag: 'tag1' },
expected: { result_var: { tag: 'tag1', value: '(binary data now shown)' } },
},
EMPTY_VALUE: {
value: { tag: 'msgpack' },
Expand Down

0 comments on commit 2823361

Please sign in to comment.