mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 09:35:39 -05:00
Pinning Notebooks on Notebooks view (#11963)
* initial commit * added tests * code cleanup and more tests * add missed util test * changes to address comments * remove pin from resources
This commit is contained in:
@@ -327,4 +327,22 @@ describe('Utils Tests', function () {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('isBookItemPinned', function (): void {
|
||||
it('Should NOT pin an unknown book within a workspace', async function (): Promise<void> {
|
||||
|
||||
let notebookUri = path.join(path.sep, 'randomfolder', 'randomsubfolder', 'content', 'randomnotebook.ipynb');
|
||||
let isNotebookPinned = utils.isBookItemPinned(notebookUri);
|
||||
|
||||
should(isNotebookPinned).be.false('Random notebooks should not be pinned');
|
||||
});
|
||||
});
|
||||
|
||||
describe('getPinnedNotebooks', function (): void {
|
||||
it('Should NOT have any pinned notebooks', async function (): Promise<void> {
|
||||
let pinnedNotebooks: string[] = utils.getPinnedNotebooks();
|
||||
|
||||
should(pinnedNotebooks.length).equal(0, 'Should not have any pinned notebooks');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user