fix unit tests. add conversation model and add unit tests to it.
This commit is contained in:
@ -16,7 +16,6 @@ describe('Conversation', () => {
|
||||
|
||||
it('should add a message to the conversation', () => {
|
||||
conversation.addMessage({ id: "s1", language: "en" }, "Hello");
|
||||
expect(true).toEqual(false);
|
||||
expect(conversation.length).toBe(1);
|
||||
expect(conversation[0].speaker.id).toEqual("s1");
|
||||
expect(conversation[0].text).toEqual("hello");
|
||||
|
Reference in New Issue
Block a user