Skip to content

Commit

Permalink
🧹 refactor(api): remove unused Event
Browse files Browse the repository at this point in the history
  • Loading branch information
yaf committed Jan 21, 2025
1 parent 2d9fa80 commit fb6bea7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 0 additions & 10 deletions api/lib/domain/events/Event.js

This file was deleted.

10 changes: 9 additions & 1 deletion api/tests/unit/infrastructure/events/EventBus_test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import { Event } from '../../../../lib/domain/events/Event.js';
import { EventBus } from '../../../../lib/infrastructure/events/EventBus.js';
import { expect, sinon } from '../../../test-helper.js';

class Event {
get attributes() {
return {
event: this.constructor.name,
attributes: { ...this },
};
}
}

describe('Unit | Infrastructure | Events | EventBus', function () {
describe('#publish', function () {
let dependenciesBuilder;
Expand Down

0 comments on commit fb6bea7

Please sign in to comment.