mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix book toc manager tests (#16034)
* fix book toc manager tests * add js-yaml to notebooks package.json
This commit is contained in:
@@ -459,7 +459,7 @@ describe('BookTocManagerTests', function () {
|
||||
});
|
||||
|
||||
|
||||
it.skip('Add section to book', async () => { // TODO: chgagnon Fix from vscode merge
|
||||
it('Add section to book', async () => {
|
||||
bookTocManager = new BookTocManager(sourceBookModel, targetBookModel);
|
||||
await bookTocManager.updateBook(sectionA, targetBook, undefined);
|
||||
const listFiles = await fs.promises.readdir(path.join(run.targetBook.bookContentFolderPath, 'sectionA'));
|
||||
@@ -468,7 +468,7 @@ describe('BookTocManagerTests', function () {
|
||||
should(JSON.stringify(listFiles)).be.equal(JSON.stringify(['notebook1.ipynb', 'notebook2.ipynb', 'readme.md']), 'The files of the section should be moved to the target book folder');
|
||||
});
|
||||
|
||||
it.skip('Add section to section', async () => { // TODO: chgagnon Fix from vscode merge
|
||||
it('Add section to section', async () => {
|
||||
bookTocManager = new BookTocManager(sourceBookModel, targetBookModel);
|
||||
await bookTocManager.updateBook(sectionB, sectionC, {
|
||||
'title': 'Notebook 6',
|
||||
|
||||
Reference in New Issue
Block a user