Skip to content

Commit 684e765

Browse files
committed
fix tests of numeric values
1 parent eff2419 commit 684e765

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/notebooks/deepnote/converters/inputConverters.unit.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ suite('InputSliderBlockConverter', () => {
493493
converter.applyChangesToBlock(block, cell);
494494

495495
assert.strictEqual(block.content, '');
496-
assert.strictEqual(block.metadata?.deepnote_variable_value, 7);
496+
assert.strictEqual(block.metadata?.deepnote_variable_value, '7');
497497
// Other metadata should be preserved
498498
assert.strictEqual(block.metadata?.deepnote_variable_name, 'slider1');
499499
assert.strictEqual(block.metadata?.deepnote_slider_min_value, 0);
@@ -516,7 +516,7 @@ suite('InputSliderBlockConverter', () => {
516516

517517
converter.applyChangesToBlock(block, cell);
518518

519-
assert.strictEqual(block.metadata?.deepnote_variable_value, 42);
519+
assert.strictEqual(block.metadata?.deepnote_variable_value, '42');
520520
});
521521

522522
test('handles invalid numeric value', () => {
@@ -536,7 +536,7 @@ suite('InputSliderBlockConverter', () => {
536536
converter.applyChangesToBlock(block, cell);
537537

538538
// Should fall back to existing value (parsed as number)
539-
assert.strictEqual(block.metadata?.deepnote_variable_value, 5);
539+
assert.strictEqual(block.metadata?.deepnote_variable_value, '5');
540540
});
541541
});
542542
});

0 commit comments

Comments
 (0)