Skip to content

Commit c463b35

Browse files
bad copy paste
1 parent 122f0c9 commit c463b35

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

__test__/extensions/message-handlers/ngpvan-optout.test.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -190,28 +190,6 @@ describe("extensions.message-handlers.ngpvan-optout", () => {
190190
message
191191
})
192192

193-
expect(result).toEqual({});
194-
expect(HttpRequest.default.mock.calls)
195-
})
196-
})
197-
198-
// Skipping as there is a world where we opt out someone
199-
// even when the message is not from them originally
200-
describe.skip("when the message is not from the contact", () => {
201-
beforeEach(async () => {
202-
message = {
203-
...message,
204-
is_from_contact: false
205-
};
206-
});
207-
208-
it("returns and empty obejct and DOES NOT post to NGP VAN", async () => {
209-
const result = await VanOptOut.postMessageSave({
210-
handlerContext,
211-
organization,
212-
message
213-
});
214-
215193
expect(result).toEqual({});
216194
expect(HttpRequest.default.mock.calls).toEqual(
217195
[
@@ -234,6 +212,28 @@ describe("extensions.message-handlers.ngpvan-optout", () => {
234212
]
235213
]
236214
);
215+
})
216+
})
217+
218+
// Skipping as there is a world where we opt out someone
219+
// even when the message is not from them originally
220+
describe.skip("when the message is not from the contact", () => {
221+
beforeEach(async () => {
222+
message = {
223+
...message,
224+
is_from_contact: false
225+
};
226+
});
227+
228+
it("returns and empty obejct and DOES NOT post to NGP VAN", async () => {
229+
const result = await VanOptOut.postMessageSave({
230+
handlerContext,
231+
organization,
232+
message
233+
});
234+
235+
expect(result).toEqual({});
236+
expect(HttpRequest.default.mock.calls).toHaveLength(0);
237237
});
238238
});
239239
});

0 commit comments

Comments
 (0)