Mark test as unstable (#16785)

* mark test as unstable

* fix close book test
This commit is contained in:
Barbara Valdez
2021-08-16 21:02:26 -07:00
committed by GitHub
parent ad96db1a0c
commit 95a08d2ce7

View File

@@ -777,7 +777,7 @@ describe('BooksTreeViewTests', function () {
should(showPreviewSpy.calledOnce).be.true('Should have called showPreviewFile.');
});
it('should add book when bookPath contains special characters on openBook', async () => {
it('should add book when bookPath contains special characters on openBook @UNSTABLE@', async () => {
let rootFolderPath2 = path.join(os.tmpdir(), `BookTestData(1)_${uuid.v4()}`);
let dataFolderPath2 = path.join(rootFolderPath2, '_data');
let contentFolderPath2 = path.join(rootFolderPath2, 'content');
@@ -846,6 +846,8 @@ describe('BooksTreeViewTests', function () {
});
it('should remove book on closeBook', async () => {
await bookTreeViewProvider.openBook(rootFolderPath, undefined, true);
should(bookTreeViewProvider.books.length).equal(1, 'Failed to initialize the book on open');
let length: number = bookTreeViewProvider.books.length;
await bookTreeViewProvider.closeBook(bookTreeViewProvider.books[0].bookItems[0]);
should(bookTreeViewProvider.books.length).equal(length - 1, 'Failed to remove the book on close');