Skip to content

Commit 20c5d1f

Browse files
committed
Remove chart and text from extras
1 parent 1cedd83 commit 20c5d1f

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

js/src/messaging.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ export class Result {
183183
'json',
184184
'javascript',
185185
'data',
186+
'chart',
186187
'extra',
188+
"text"
187189
].includes(key)
188190
) {
189191
this.extra[key] = data[key]

js/tests/displayData.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ sandboxTest('display data', async ({ sandbox }) => {
1818
const image = result.results[0]
1919
expect(image.png).toBeDefined()
2020
expect(image.text).toBeDefined()
21+
expect(image.extra).toEqual({})
2122
})

python/tests/async/test_async_display_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ async def test_display_data(async_sandbox: AsyncSandbox):
2020
data = result.results[0]
2121
assert data.png
2222
assert data.text
23+
assert not data.extra

python/tests/sync/test_display_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ def test_display_data(sandbox: Sandbox):
2020
data = result.results[0]
2121
assert data.png
2222
assert data.text
23+
assert not data.extra

0 commit comments

Comments
 (0)