Skip to content

Commit c5ec57a

Browse files
committed
Fix assertion message
1 parent bdfcfc2 commit c5ec57a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/host/app/components/matrix/room-message-command.gts

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import type { CardDef } from 'https://cardstack.com/base/card-api';
4343
import ApplyButton from '../ai-assistant/apply-button';
4444
import { type ApplyButtonState } from '../ai-assistant/apply-button';
4545
import Preview from '../preview';
46-
import { next } from '@ember/runloop';
4746

4847
interface Signature {
4948
Element: HTMLDivElement;
@@ -130,7 +129,7 @@ export default class RoomMessageCommand extends Component<Signature> {
130129
return;
131130
}
132131
element.style.height = `${height}px`; // max-height is constrained by CSS
133-
next(this, this.scrollIntoView, element.parentElement as HTMLElement);
132+
this.scrollIntoView(element.parentElement as HTMLElement);
134133
});
135134

136135
private scrollIntoView(element: HTMLElement) {

packages/host/tests/acceptance/commands-test.gts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ module('Acceptance | Commands tests', function (hooks) {
11901190
assert.equal(
11911191
commandResultEvents.length,
11921192
1,
1193-
'No command result event dispatched',
1193+
'Command result event was dispatched',
11941194
);
11951195
assert.dom('[data-test-apply-state="applied"]').exists();
11961196
});

0 commit comments

Comments
 (0)