Skip to content

Commit 54ca963

Browse files
committed
pr feedback
1 parent 895fe09 commit 54ca963

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/kernels/execution/cellExecutionCreator.unit.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assert } from 'chai';
1+
import { strict as assert } from 'assert';
22
import { anything, instance, mock, verify, when } from 'ts-mockito';
33
import { CancellationToken, NotebookCell, NotebookCellExecution } from 'vscode';
44

@@ -149,17 +149,17 @@ suite('NotebookCellExecutionWrapper', () => {
149149
// Should only be called once
150150
assert.strictEqual(clearOutputCallCount, 1, 'clearOutput should be called only once');
151151
assert.strictEqual(startCallCount, 1, 'start should be called only once');
152-
assert.isTrue(wrapper.started, 'wrapper should be marked as started');
152+
assert.strictEqual(wrapper.started, true, 'wrapper should be marked as started');
153153
});
154154

155155
test('started flag is false initially and true after start', () => {
156156
const wrapper = new NotebookCellExecutionWrapper(instance(mockImpl), 'test-controller', endCallback, false);
157157

158-
assert.isFalse(wrapper.started, 'started should be false before start() is called');
158+
assert.strictEqual(wrapper.started, false, 'started should be false before start() is called');
159159

160160
wrapper.start();
161161

162-
assert.isTrue(wrapper.started, 'started should be true after start() is called');
162+
assert.strictEqual(wrapper.started, true, 'started should be true after start() is called');
163163
});
164164

165165
test('clearOutput() is called when reusing a started execution with clearOutputOnStartWithTime=true', () => {
@@ -281,7 +281,7 @@ suite('CellExecutionCreator', () => {
281281
assert.strictEqual(endCallCount, 1, 'Old execution should be ended when creating new one');
282282

283283
// New execution should be started automatically because old one was started
284-
assert.isTrue(execution2.started, 'New execution should be started automatically');
284+
assert.strictEqual(execution2.started, true, 'New execution should be started automatically');
285285

286286
// clearOutput should have been called again during the new execution's start
287287
assert.strictEqual(clearOutputCallCount, 2, 'clearOutput should be called again when new execution starts');

src/webviews/extension-side/dataframe/dataframeController.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ type DataframeCommand = SelectPageSizeCommand | GoToPageCommand | CopyTableDataC
4545
export class DataframeController implements IExtensionSyncActivationService {
4646
private readonly disposables: IDisposable[] = [];
4747

48-
public dispose() {
49-
dispose(this.disposables);
50-
}
51-
52-
activate() {
48+
public activate() {
5349
const comms = notebooks.createRendererMessaging('deepnote-dataframe-renderer');
5450
comms.onDidReceiveMessage(this.onDidReceiveMessage.bind(this, comms), this, this.disposables);
5551
}
5652

53+
public dispose() {
54+
dispose(this.disposables);
55+
}
56+
5757
private async onDidReceiveMessage(
5858
_comms: NotebookRendererMessaging,
5959
{ editor, message }: { editor: NotebookEditor; message: DataframeCommand }

0 commit comments

Comments
 (0)