mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 04:52:43 +08:00
DEV: Resolve this-property-fallback deprecation in chat test (#30669)
This commit is contained in:
parent
adb4715109
commit
69ec6d29d7
|
@ -18,7 +18,7 @@ module(
|
|||
this.user = new CoreFabricators(getOwner(this)).user();
|
||||
|
||||
await render(
|
||||
hbs`<Chat::DirectMessageButton @user={{user}} @modal={{true}} />`
|
||||
hbs`<Chat::DirectMessageButton @user={{this.user}} @modal={{true}} />`
|
||||
);
|
||||
|
||||
assert.dom(".chat-direct-message-btn").exists("it shows the chat button");
|
||||
|
@ -31,7 +31,7 @@ module(
|
|||
this.user = new CoreFabricators(getOwner(this)).user();
|
||||
|
||||
await render(
|
||||
hbs`<Chat::DirectMessageButton @user={{user}} @modal={{true}} />`
|
||||
hbs`<Chat::DirectMessageButton @user={{this.user}} @modal={{true}} />`
|
||||
);
|
||||
|
||||
assert
|
||||
|
@ -49,7 +49,7 @@ module(
|
|||
});
|
||||
|
||||
await render(
|
||||
hbs`<Chat::DirectMessageButton @user={{user}} @modal={{true}} />`
|
||||
hbs`<Chat::DirectMessageButton @user={{this.user}} @modal={{true}} />`
|
||||
);
|
||||
|
||||
assert
|
||||
|
|
Loading…
Reference in New Issue
Block a user