mirror of
https://github.com/nasa/openmct.git
synced 2025-03-25 05:25:45 +00:00
updating spec statements to be more broad
This commit is contained in:
parent
731ab89561
commit
7dee6344b0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user