mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 02:01:15 +08:00
DEV: Remove OK
pretender helper (#22438)
We already have the `response` helper (which additionally sets the `Content-Type` header) (also: all-caps name suggested a constant, not a function)
This commit is contained in:
@ -3,7 +3,7 @@ import hbs from "htmlbars-inline-precompile";
|
||||
import fabricators from "discourse/plugins/chat/discourse/lib/fabricators";
|
||||
import { render, triggerEvent, waitFor } from "@ember/test-helpers";
|
||||
import { module, test } from "qunit";
|
||||
import pretender, { OK } from "discourse/tests/helpers/create-pretender";
|
||||
import pretender, { response } from "discourse/tests/helpers/create-pretender";
|
||||
import { publishToMessageBus } from "discourse/tests/helpers/qunit-helpers";
|
||||
|
||||
module(
|
||||
@ -53,7 +53,7 @@ module(
|
||||
|
||||
hooks.beforeEach(function () {
|
||||
pretender.get(`/chat/api/channels/1`, () =>
|
||||
OK({
|
||||
response({
|
||||
channel,
|
||||
chat_messages: [message],
|
||||
meta: { can_delete_self: true },
|
||||
|
Reference in New Issue
Block a user