fix broken tests
This commit is contained in:
@@ -30,7 +30,6 @@ export default class NewFolderAction {
|
|||||||
this.cssClass = 'icon-folder';
|
this.cssClass = 'icon-folder';
|
||||||
|
|
||||||
this._openmct = openmct;
|
this._openmct = openmct;
|
||||||
this._folderType = openmct.types.get('folder');
|
|
||||||
this._dialogForm = {
|
this._dialogForm = {
|
||||||
name: "New Folder Name",
|
name: "New Folder Name",
|
||||||
sections: [
|
sections: [
|
||||||
|
|||||||
@@ -30,10 +30,6 @@ describe("the plugin", () => {
|
|||||||
let openmct,
|
let openmct,
|
||||||
newFolderAction;
|
newFolderAction;
|
||||||
|
|
||||||
beforeAll(() => {
|
|
||||||
resetApplicationState();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach((done) => {
|
beforeEach((done) => {
|
||||||
openmct = createOpenMct();
|
openmct = createOpenMct();
|
||||||
|
|
||||||
@@ -45,6 +41,10 @@ describe("the plugin", () => {
|
|||||||
})[0];
|
})[0];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
resetApplicationState();
|
||||||
|
});
|
||||||
|
|
||||||
it('installs the new folder action', () => {
|
it('installs the new folder action', () => {
|
||||||
expect(newFolderAction).toBeDefined();
|
expect(newFolderAction).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user