mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 10:57:04 +08:00
DEV: use the existing parsePostData function (#9629)
This commit is contained in:
parent
70b1e98609
commit
a2c85f0845
|
@ -1,15 +1,12 @@
|
|||
import { acceptance, loggedInUser } from "helpers/qunit-helpers";
|
||||
import pretender from "helpers/create-pretender";
|
||||
import { parsePostData } from "helpers/create-pretender";
|
||||
|
||||
acceptance("Bookmarking", { loggedIn: true });
|
||||
|
||||
function handleRequest(assert, request) {
|
||||
const body = request.requestBody;
|
||||
const reminderType = body
|
||||
.substr(0, body.indexOf("&"))
|
||||
.replace("reminder_type=", "");
|
||||
|
||||
assert.step(reminderType || "none");
|
||||
const data = parsePostData(request.requestBody);
|
||||
assert.step(data.reminder_type || "none");
|
||||
|
||||
return [
|
||||
200,
|
||||
|
|
Loading…
Reference in New Issue
Block a user