DEV: Resolve this-property-fallback deprecation in chat test (#30669)

This commit is contained in:
David Taylor 2025-01-09 10:17:18 +00:00 committed by GitHub
parent adb4715109
commit 69ec6d29d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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