mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
DEV: Update lint-configs and autofix issues (#31620)
This updates us to Prettier 3.x
This commit is contained in:
@@ -97,16 +97,26 @@ module("Discourse Chat | Component | <ChannelName />", function (hooks) {
|
||||
channel.tracking.unreadCount = 1;
|
||||
|
||||
let unreadIndicator = true;
|
||||
await render(<template>
|
||||
<ChannelName @channel={{channel}} @unreadIndicator={{unreadIndicator}} />
|
||||
</template>);
|
||||
await render(
|
||||
<template>
|
||||
<ChannelName
|
||||
@channel={{channel}}
|
||||
@unreadIndicator={{unreadIndicator}}
|
||||
/>
|
||||
</template>
|
||||
);
|
||||
|
||||
assert.dom(".chat-channel-unread-indicator").exists();
|
||||
|
||||
unreadIndicator = false;
|
||||
await render(<template>
|
||||
<ChannelName @channel={{channel}} @unreadIndicator={{unreadIndicator}} />
|
||||
</template>);
|
||||
await render(
|
||||
<template>
|
||||
<ChannelName
|
||||
@channel={{channel}}
|
||||
@unreadIndicator={{unreadIndicator}}
|
||||
/>
|
||||
</template>
|
||||
);
|
||||
|
||||
assert.dom(".chat-channel-unread-indicator").doesNotExist();
|
||||
});
|
||||
|
||||
@@ -12,9 +12,11 @@ module("Discourse Chat | Component | <ThreadSettings />", function (hooks) {
|
||||
this.currentUser.admin = true;
|
||||
const thread = new ChatFabricators(getOwner(this)).thread();
|
||||
|
||||
await render(<template>
|
||||
<ChatModalThreadSettings @inline={{true}} @model={{thread}} />
|
||||
</template>);
|
||||
await render(
|
||||
<template>
|
||||
<ChatModalThreadSettings @inline={{true}} @model={{thread}} />
|
||||
</template>
|
||||
);
|
||||
|
||||
assert.dom(".discourse-ai-cta").exists();
|
||||
});
|
||||
@@ -23,9 +25,11 @@ module("Discourse Chat | Component | <ThreadSettings />", function (hooks) {
|
||||
this.currentUser.admin = false;
|
||||
const thread = new ChatFabricators(getOwner(this)).thread();
|
||||
|
||||
await render(<template>
|
||||
<ChatModalThreadSettings @inline={{true}} @model={{thread}} />
|
||||
</template>);
|
||||
await render(
|
||||
<template>
|
||||
<ChatModalThreadSettings @inline={{true}} @model={{thread}} />
|
||||
</template>
|
||||
);
|
||||
|
||||
assert.dom(".discourse-ai-cta").doesNotExist();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user