From cd6c7fdc5ecc32d58fc4252891aa8b26eee8a3c6 Mon Sep 17 00:00:00 2001 From: Deep Tailor Date: Tue, 23 Jun 2020 15:54:10 -0700 Subject: [PATCH] fix broken tests --- src/plugins/newFolderAction/newFolderAction.js | 1 - src/plugins/newFolderAction/pluginSpec.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/newFolderAction/newFolderAction.js b/src/plugins/newFolderAction/newFolderAction.js index 98ac889e8f..c93359915d 100644 --- a/src/plugins/newFolderAction/newFolderAction.js +++ b/src/plugins/newFolderAction/newFolderAction.js @@ -30,7 +30,6 @@ export default class NewFolderAction { this.cssClass = 'icon-folder'; this._openmct = openmct; - this._folderType = openmct.types.get('folder'); this._dialogForm = { name: "New Folder Name", sections: [ diff --git a/src/plugins/newFolderAction/pluginSpec.js b/src/plugins/newFolderAction/pluginSpec.js index 7b8ae08d3a..71c089018a 100644 --- a/src/plugins/newFolderAction/pluginSpec.js +++ b/src/plugins/newFolderAction/pluginSpec.js @@ -30,10 +30,6 @@ describe("the plugin", () => { let openmct, newFolderAction; - beforeAll(() => { - resetApplicationState(); - }); - beforeEach((done) => { openmct = createOpenMct(); @@ -45,6 +41,10 @@ describe("the plugin", () => { })[0]; }); + afterEach(() => { + resetApplicationState(); + }); + it('installs the new folder action', () => { expect(newFolderAction).toBeDefined(); });