Skip to content

Commit a27cf0c

Browse files
committed
update messageTools.test.ts
1 parent 78404ed commit a27cf0c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/unit/chat/messageTools.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ describe('sentimentStrip', () => {
1515
it('exists', () => {
1616
expect(sentimentStrip).toBeInstanceOf(Function)
1717
})
18-
it('runs', () => {
19-
expect(sentimentStrip(message1)).toBeInstanceOf(Text)
18+
it('runs', async () => {
19+
expect(await sentimentStrip(message1)).toBeInstanceOf(Text)
2020
})
2121
})
2222

2323
describe('sentimentStripLinked', () => {
2424
it('exists', () => {
2525
expect(sentimentStripLinked).toBeInstanceOf(Function)
2626
})
27-
it('runs', () => {
28-
expect(sentimentStripLinked(message1, message1.doc())).toBeInstanceOf(HTMLSpanElement)
27+
it('runs', async () => {
28+
expect(await sentimentStripLinked(message1, message1.doc())).toBeInstanceOf(HTMLSpanElement)
2929
})
3030
})
3131

3232
describe('messageToolbar', () => {
3333
it('exists', () => {
3434
expect(messageToolbar).toBeInstanceOf(Function)
3535
})
36-
it('runs', () => {
37-
expect(messageToolbar(message1, document.createElement('tr'), {})).toBeInstanceOf(HTMLDivElement)
36+
it('runs', async () => {
37+
expect(await messageToolbar(message1, document.createElement('tr'), {})).toBeInstanceOf(HTMLDivElement)
3838
})
3939
})

0 commit comments

Comments
 (0)