aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason Miller <[email protected]>2023-07-04 13:28:29 -0400
committerJason Miller <[email protected]>2023-07-04 13:28:29 -0400
commit05f4ce67e8f13002ee7229031d583091d24488a0 (patch)
tree1acadb34fac42022dd9e78fd119f112bd04acb9b /test
parent3f81679127be71dd7ad1b2bbbd5a56df81c96290 (diff)
apply prettier formatting to all files
Diffstat (limited to 'test')
-rw-r--r--test/index_test.ts16
1 files changed, 4 insertions, 12 deletions
diff --git a/test/index_test.ts b/test/index_test.ts
index 723dfa6..31c9495 100644
--- a/test/index_test.ts
+++ b/test/index_test.ts
@@ -44,17 +44,13 @@ describe('mitt#', () => {
describe('properties', () => {
it('should expose the event handler map', () => {
- expect(inst)
- .to.have.property('all')
- .that.is.a('map');
+ expect(inst).to.have.property('all').that.is.a('map');
});
});
describe('on()', () => {
it('should be a function', () => {
- expect(inst)
- .to.have.property('on')
- .that.is.a('function');
+ expect(inst).to.have.property('on').that.is.a('function');
});
it('should register handler for new type', () => {
@@ -111,9 +107,7 @@ describe('mitt#', () => {
describe('off()', () => {
it('should be a function', () => {
- expect(inst)
- .to.have.property('off')
- .that.is.a('function');
+ expect(inst).to.have.property('off').that.is.a('function');
});
it('should remove handler for type', () => {
@@ -165,9 +159,7 @@ describe('mitt#', () => {
describe('emit()', () => {
it('should be a function', () => {
- expect(inst)
- .to.have.property('emit')
- .that.is.a('function');
+ expect(inst).to.have.property('emit').that.is.a('function');
});
it('should invoke handler for type', () => {