Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Mar 5, 2024
1 parent 1bfe08b commit 4d90372
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/utils_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,18 @@ describe('utils', () => {

describe('isEmitter', () => {
it('should return true on most modules', () => {
expect(utils.isEmitter({ name: 'app' })).to.eq(true);
expect(utils.isEmitter({ name: 'app', type: 'Module', events: [1] })).to.eq(true);
});

it('should return false for specific non-emitter modules', () => {
expect(utils.isEmitter({ name: 'menuitem' })).to.eq(false);
expect(
utils.isEmitter({
name: 'menuitem',
type: 'Class',
instanceEvents: [],
instanceMethods: [],
}),
).to.eq(false);
});
});

Expand Down

0 comments on commit 4d90372

Please sign in to comment.