DEV: use the existing parsePostData function (#9629)

DEV: use the existing parsePostData function (#9629)

diff --git a/test/javascripts/acceptance/bookmarks-test.js b/test/javascripts/acceptance/bookmarks-test.js
index 6361d43..7bde21a 100644
--- a/test/javascripts/acceptance/bookmarks-test.js
+++ b/test/javascripts/acceptance/bookmarks-test.js
@@ -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,

GitHub sha: a2c85f08

This commit appears in #9629 which was merged by jjaffeux.