We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 165e1ce commit b9eb606Copy full SHA for b9eb606
lib/core/src/entities/__tests__/entity.test.ts
@@ -79,7 +79,7 @@ describe('Entity', () => {
79
expect(transaction.events()).toHaveLength(0);
80
});
81
82
- test('throws when raising an event without an aggregate identifier', () => {
+ test('raises an event without an aggregate identifier', () => {
83
class TestEvent {
84
public id: string;
85
@@ -104,7 +104,7 @@ describe('Entity', () => {
104
105
const entity = new AnEntity(faker.string.uuid());
106
107
- expect(() => entity.doSomething()).toThrow();
+ expect(() => entity.doSomething()).not.toThrow();
108
109
110
0 commit comments