Skip to content

Commit dfe309d

Browse files
rest of chat/message runs
1 parent b5c1d37 commit dfe309d

1 file changed

Lines changed: 36 additions & 2 deletions

File tree

test/unit/chat/message.test.ts

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,52 @@ describe('creatorAndDate', () => {
3434
const message = ''
3535
expect(creatorAndDate(td1, creator, date, message)).toEqual(undefined)
3636
})
37-
3837
})
3938

4039
describe('creatorAndDateHorizontal', () => {
4140
it('exists', () => {
4241
expect(creatorAndDateHorizontal).toBeInstanceOf(Function)
4342
})
43+
it('runs', () => {
44+
const td1 = {
45+
appendChild: () => {
46+
return {
47+
style: {}
48+
}
49+
}
50+
}
51+
const creator = {}
52+
const date = {}
53+
const message = ''
54+
expect(creatorAndDateHorizontal(td1, creator, date, message)).toEqual(undefined)
55+
})
4456
})
4557

4658
describe('renderMessage', () => {
4759
it('exists', () => {
48-
expect(renderMessage).toBeInstanceOf(Function)
60+
const messageTable = {
61+
appendChild: () => {}
62+
}
63+
const bindings = {
64+
'?creator': {
65+
value: {
66+
termType: ''
67+
}
68+
},
69+
'?date': {
70+
value: ''
71+
},
72+
'?msg': {
73+
doc: () => ''
74+
},
75+
'?content': {
76+
value: ''
77+
}
78+
}
79+
const fresh = {}
80+
const options = {}
81+
const userContext = {}
82+
expect(renderMessage(messageTable, bindings, fresh, options, userContext)).toBeInstanceOf(HTMLTableRowElement)
4983
})
5084
})
5185

0 commit comments

Comments
 (0)