Skip to content

Commit

Permalink
bad copy paste
Browse files Browse the repository at this point in the history
  • Loading branch information
engelhartrueben committed Dec 13, 2024
1 parent 122f0c9 commit c463b35
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions __test__/extensions/message-handlers/ngpvan-optout.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,28 +190,6 @@ describe("extensions.message-handlers.ngpvan-optout", () => {
message
})

expect(result).toEqual({});
expect(HttpRequest.default.mock.calls)
})
})

// Skipping as there is a world where we opt out someone
// even when the message is not from them originally
describe.skip("when the message is not from the contact", () => {
beforeEach(async () => {
message = {
...message,
is_from_contact: false
};
});

it("returns and empty obejct and DOES NOT post to NGP VAN", async () => {
const result = await VanOptOut.postMessageSave({
handlerContext,
organization,
message
});

expect(result).toEqual({});
expect(HttpRequest.default.mock.calls).toEqual(
[
Expand All @@ -234,6 +212,28 @@ describe("extensions.message-handlers.ngpvan-optout", () => {
]
]
);
})
})

// Skipping as there is a world where we opt out someone
// even when the message is not from them originally
describe.skip("when the message is not from the contact", () => {
beforeEach(async () => {
message = {
...message,
is_from_contact: false
};
});

it("returns and empty obejct and DOES NOT post to NGP VAN", async () => {
const result = await VanOptOut.postMessageSave({
handlerContext,
organization,
message
});

expect(result).toEqual({});
expect(HttpRequest.default.mock.calls).toHaveLength(0);
});
});
});
Expand Down

0 comments on commit c463b35

Please sign in to comment.