Skip to content

Commit 163ff98

Browse files
committed
Fix linting
1 parent 7b8b2e5 commit 163ff98

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

tests/integration/helpers/add-listener-test.js

+20-20
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ module('Integration | Helpers | add-listener', function (hooks) {
1515
});
1616

1717
await render(hbs`{{add-listener this.obj 'thing' this.callback}}`);
18-
assert.equal(this.callback.callCount, 0);
18+
assert.strictEqual(this.callback.callCount, 0);
1919

2020
sendEvent(this.obj, 'thing', ['arg1', 2]);
21-
assert.equal(this.callback.callCount, 1);
21+
assert.strictEqual(this.callback.callCount, 1);
2222
assert.deepEqual(this.callback.lastCall.args, ['arg1', 2]);
2323

2424
sendEvent(this.obj, 'thing', ['anotherArg1', false]);
25-
assert.equal(this.callback.callCount, 2);
25+
assert.strictEqual(this.callback.callCount, 2);
2626
assert.deepEqual(this.callback.lastCall.args, ['anotherArg1', false]);
2727

2828
await clearRender();
2929

3030
sendEvent(this.obj, 'thing', ['arg1', 4]);
31-
assert.equal(this.callback.callCount, 2);
31+
assert.strictEqual(this.callback.callCount, 2);
3232
});
3333

3434
test('the target can change', async function (assert) {
@@ -40,22 +40,22 @@ module('Integration | Helpers | add-listener', function (hooks) {
4040
});
4141

4242
await render(hbs`{{add-listener this.obj 'thing' this.callback}}`);
43-
assert.equal(this.callback.callCount, 0);
43+
assert.strictEqual(this.callback.callCount, 0);
4444

4545
sendEvent(obj1, 'thing', ['arg']);
46-
assert.equal(this.callback.callCount, 1);
46+
assert.strictEqual(this.callback.callCount, 1);
4747

4848
sendEvent(obj2, 'thing', ['arg']);
49-
assert.equal(this.callback.callCount, 1);
49+
assert.strictEqual(this.callback.callCount, 1);
5050

5151
this.set('obj', obj2);
5252
await settled();
5353

5454
sendEvent(obj1, 'thing', ['arg']);
55-
assert.equal(this.callback.callCount, 1);
55+
assert.strictEqual(this.callback.callCount, 1);
5656

5757
sendEvent(obj2, 'thing', ['arg']);
58-
assert.equal(this.callback.callCount, 2);
58+
assert.strictEqual(this.callback.callCount, 2);
5959
});
6060

6161
test('the event can change', async function (assert) {
@@ -66,22 +66,22 @@ module('Integration | Helpers | add-listener', function (hooks) {
6666
});
6767

6868
await render(hbs`{{add-listener this.obj this.event this.callback}}`);
69-
assert.equal(this.callback.callCount, 0);
69+
assert.strictEqual(this.callback.callCount, 0);
7070

7171
sendEvent(this.obj, 'event1', ['arg']);
72-
assert.equal(this.callback.callCount, 1);
72+
assert.strictEqual(this.callback.callCount, 1);
7373

7474
sendEvent(this.obj, 'event2', ['arg']);
75-
assert.equal(this.callback.callCount, 1);
75+
assert.strictEqual(this.callback.callCount, 1);
7676

7777
this.set('event', 'event2');
7878
await settled();
7979

8080
sendEvent(this.obj, 'event1', ['arg']);
81-
assert.equal(this.callback.callCount, 1);
81+
assert.strictEqual(this.callback.callCount, 1);
8282

8383
sendEvent(this.obj, 'event2', ['arg']);
84-
assert.equal(this.callback.callCount, 2);
84+
assert.strictEqual(this.callback.callCount, 2);
8585
});
8686

8787
test('the callback can change', async function (assert) {
@@ -93,18 +93,18 @@ module('Integration | Helpers | add-listener', function (hooks) {
9393
});
9494

9595
await render(hbs`{{add-listener this.obj 'thing' this.callback}}`);
96-
assert.equal(this.callback.callCount, 0);
96+
assert.strictEqual(this.callback.callCount, 0);
9797

9898
sendEvent(this.obj, 'thing', ['arg']);
99-
assert.equal(callback1.callCount, 1);
100-
assert.equal(callback2.callCount, 0);
99+
assert.strictEqual(callback1.callCount, 1);
100+
assert.strictEqual(callback2.callCount, 0);
101101

102102
this.set('callback', callback2);
103103
await settled();
104104

105105
sendEvent(this.obj, 'thing', ['arg']);
106-
assert.equal(callback1.callCount, 1);
107-
assert.equal(callback2.callCount, 1);
106+
assert.strictEqual(callback1.callCount, 1);
107+
assert.strictEqual(callback2.callCount, 1);
108108
});
109109

110110
test('it handles un-set arguments', async function (assert) {
@@ -142,7 +142,7 @@ module('Integration | Helpers | add-listener', function (hooks) {
142142
this.set('obj', {});
143143
await settled();
144144
sendEvent(this.obj, 'thing', ['arg']);
145-
assert.equal(this.callback.callCount, 1);
145+
assert.strictEqual(this.callback.callCount, 1);
146146
assert.deepEqual(this.callback.firstCall.args, ['arg']);
147147
});
148148
});

0 commit comments

Comments
 (0)