mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
Set notebook as trusted after executing a cell. (#9108)
* Also set trusted by default when opening a notebook without any code cells.
This commit is contained in:
@@ -155,8 +155,9 @@ suite('notebook model', function (): void {
|
||||
|
||||
// Then I expect to have 0 code cell as the contents
|
||||
assert.equal(model.cells.length, 0);
|
||||
// And Trust should be false by default
|
||||
assert(!model.trustedMode);
|
||||
|
||||
// And Trust should be true by default if there are no cells
|
||||
assert(model.trustedMode);
|
||||
});
|
||||
|
||||
test('Should use trusted state set in model load', async function (): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user