DEV: Fix state leak in QUnit acceptance tests (#17507)

Follow-up to 0525455ef6
This commit is contained in:
Alan Guo Xiang Tan 2022-07-15 14:51:15 +08:00 committed by GitHub
parent e8d802eb86
commit 8ddca5998c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,9 +36,9 @@ acceptance("Topic list tracking", function (needs) {
});
server.get("/t/11557.json", () => {
const topicFixture = topicFixtures["/t/130.json"];
const topicFixture = cloneJSON(topicFixtures["/t/130.json"]);
topicFixture.id = 11557;
return helper.response(cloneJSON(topicFixture));
return helper.response(topicFixture);
});
});