From 7dee6344b097b71767e2e1ba312b0f30c802fda4 Mon Sep 17 00:00:00 2001 From: Jamie Vigliotta Date: Mon, 6 Jul 2020 14:14:57 -0700 Subject: [PATCH] updating spec statements to be more broad --- src/plugins/remove/pluginSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/remove/pluginSpec.js b/src/plugins/remove/pluginSpec.js index 88ec141480..dcf1083c58 100644 --- a/src/plugins/remove/pluginSpec.js +++ b/src/plugins/remove/pluginSpec.js @@ -76,7 +76,7 @@ fdescribe("The Remove Action plugin", () => { expect(RemoveActionPlugin).toBeDefined(); }); - describe("when removeFromComposition is invoked", () => { + describe("when removing an object from a parent composition", () => { beforeEach(() => { removeAction = new RemoveAction(openmct); @@ -86,7 +86,7 @@ fdescribe("The Remove Action plugin", () => { removeAction.removeFromComposition(parentObject, childObject); }); - it("it should be called", () => { + it("removeFromComposition should be called with the parent and child", () => { expect(removeAction.removeFromComposition).toHaveBeenCalled(); expect(removeAction.removeFromComposition).toHaveBeenCalledWith(parentObject, childObject); }); @@ -97,7 +97,7 @@ fdescribe("The Remove Action plugin", () => { }); }); - describe("when appliesTo is called", () => { + describe("when determining the object is applicable", () => { beforeEach(() => { removeAction = new RemoveAction(openmct);