Skip to content

Commit 0400141

Browse files
committed
chore: uses assert.expect in tests
1 parent e3f55e9 commit 0400141

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.template-lintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
module.exports = {
44
extends: 'recommended',
5+
rules: {
6+
'no-action': 'off',
7+
},
58
};

tests/acceptance/root-test.js

+6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ module('Acceptance: Root', function (hooks) {
3636
});
3737

3838
test('posting a string', function (assert) {
39+
assert.expect(3);
40+
3941
server.post('/upload', function (req) {
4042
assert.strictEqual(req.requestBody, 'foo');
4143
return [
@@ -59,6 +61,8 @@ module('Acceptance: Root', function (hooks) {
5961
});
6062

6163
test('posting a form', function (assert) {
64+
assert.expect(3);
65+
6266
server.post('/upload', function (req) {
6367
assert.ok(req.requestBody instanceof window.FormData);
6468
return [
@@ -84,6 +88,8 @@ module('Acceptance: Root', function (hooks) {
8488
});
8589

8690
test('posting an array buffer', function (assert) {
91+
assert.expect(3);
92+
8793
server.post('/upload', function (req) {
8894
assert.ok(req.requestBody instanceof window.ArrayBuffer);
8995
return [

0 commit comments

Comments
 (0)