|
1 | | -import { assert } from 'chai'; |
| 1 | +import { strict as assert } from 'assert'; |
2 | 2 | import { anything, instance, mock, verify, when } from 'ts-mockito'; |
3 | 3 | import { CancellationToken, NotebookCell, NotebookCellExecution } from 'vscode'; |
4 | 4 |
|
@@ -149,17 +149,17 @@ suite('NotebookCellExecutionWrapper', () => { |
149 | 149 | // Should only be called once |
150 | 150 | assert.strictEqual(clearOutputCallCount, 1, 'clearOutput should be called only once'); |
151 | 151 | 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'); |
153 | 153 | }); |
154 | 154 |
|
155 | 155 | test('started flag is false initially and true after start', () => { |
156 | 156 | const wrapper = new NotebookCellExecutionWrapper(instance(mockImpl), 'test-controller', endCallback, false); |
157 | 157 |
|
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'); |
159 | 159 |
|
160 | 160 | wrapper.start(); |
161 | 161 |
|
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'); |
163 | 163 | }); |
164 | 164 |
|
165 | 165 | test('clearOutput() is called when reusing a started execution with clearOutputOnStartWithTime=true', () => { |
@@ -281,7 +281,7 @@ suite('CellExecutionCreator', () => { |
281 | 281 | assert.strictEqual(endCallCount, 1, 'Old execution should be ended when creating new one'); |
282 | 282 |
|
283 | 283 | // 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'); |
285 | 285 |
|
286 | 286 | // clearOutput should have been called again during the new execution's start |
287 | 287 | assert.strictEqual(clearOutputCallCount, 2, 'clearOutput should be called again when new execution starts'); |
|
0 commit comments