aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakob Linskeseder <[email protected]>2020-06-03 21:41:20 +0200
committerJakob Linskeseder <[email protected]>2020-06-03 21:41:20 +0200
commit2c85f0900f5fd1d12844d0f61cafa27a739d4346 (patch)
treeebd2725f494697fbf1272f76f73b33622b1fcbf7 /test
parent59591757df1a563274e56ee1f80a54818834afca (diff)
Expose `all` property
Relates to #70 #72 #102
Diffstat (limited to 'test')
-rw-r--r--test/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/index.js b/test/index.js
index a837d36..473e92e 100644
--- a/test/index.js
+++ b/test/index.js
@@ -30,6 +30,14 @@ describe('mitt#', () => {
inst = mitt(events);
});
+ describe('properties', () => {
+ it('should expose the event handler map', () => {
+ expect(inst)
+ .to.have.property('all')
+ .that.is.a('map');
+ });
+ });
+
describe('on()', () => {
it('should be a function', () => {
expect(inst)