mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 07:42:42 +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();
|
this.user = new CoreFabricators(getOwner(this)).user();
|
||||||
|
|
||||||
await render(
|
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");
|
assert.dom(".chat-direct-message-btn").exists("it shows the chat button");
|
||||||
|
@ -31,7 +31,7 @@ module(
|
||||||
this.user = new CoreFabricators(getOwner(this)).user();
|
this.user = new CoreFabricators(getOwner(this)).user();
|
||||||
|
|
||||||
await render(
|
await render(
|
||||||
hbs`<Chat::DirectMessageButton @user={{user}} @modal={{true}} />`
|
hbs`<Chat::DirectMessageButton @user={{this.user}} @modal={{true}} />`
|
||||||
);
|
);
|
||||||
|
|
||||||
assert
|
assert
|
||||||
|
@ -49,7 +49,7 @@ module(
|
||||||
});
|
});
|
||||||
|
|
||||||
await render(
|
await render(
|
||||||
hbs`<Chat::DirectMessageButton @user={{user}} @modal={{true}} />`
|
hbs`<Chat::DirectMessageButton @user={{this.user}} @modal={{true}} />`
|
||||||
);
|
);
|
||||||
|
|
||||||
assert
|
assert
|
||||||
|
|
Loading…
Reference in New Issue
Block a user