Skip to content

Commit b9eb606

Browse files
committed
fix(entity): updated test
1 parent 165e1ce commit b9eb606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core/src/entities/__tests__/entity.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('Entity', () => {
7979
expect(transaction.events()).toHaveLength(0);
8080
});
8181

82-
test('throws when raising an event without an aggregate identifier', () => {
82+
test('raises an event without an aggregate identifier', () => {
8383
class TestEvent {
8484
public id: string;
8585

@@ -104,7 +104,7 @@ describe('Entity', () => {
104104

105105
const entity = new AnEntity(faker.string.uuid());
106106

107-
expect(() => entity.doSomething()).toThrow();
107+
expect(() => entity.doSomething()).not.toThrow();
108108
});
109109
});
110110

0 commit comments

Comments
 (0)