Skip to content

Commit

Permalink
🐛 fix test message
Browse files Browse the repository at this point in the history
  • Loading branch information
clgleroux committed Nov 10, 2022
1 parent 4d3ae6b commit da09f14
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Message.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ import { Message } from './Message';

describe('Message', () => {
let instance: Message;
const subject = 'mock';
const object = 'mock';
const subject = 'mockSubject';
const object = 'mockObject';

beforeEach(() => {
instance = new Message(subject, object);
});

it('should message', async () => {
it('should class message', async () => {
expect(instance).toBeInstanceOf(Message);
expect(instance.subject).toBe(subject);
expect(instance.object).toBe(object);
});

it('should send message return this', async () => {
expect(instance.sendMessage()).toBeInstanceOf(Message);
});
});

0 comments on commit da09f14

Please sign in to comment.