Skip to content

Commit 7639012

Browse files
committed
wip
1 parent bc96b6e commit 7639012

38 files changed

+77
-77
lines changed

docs/rules/assert-args.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# qunit/assert-args
22

3-
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
4-
53
📝 Enforce that the correct number of assert arguments are used.
64

5+
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
6+
77
<!-- end auto-generated rule header -->
88

99
QUnit's assertions expect a certain number of arguments based on what sort of

docs/rules/literal-compare-order.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# qunit/literal-compare-order
22

3+
📝 Enforce comparison assertions have arguments in the right order.
4+
35
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
46

57
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
68

7-
📝 Enforce comparison assertions have arguments in the right order.
8-
99
<!-- end auto-generated rule header -->
1010

1111
QUnit's many comparison assertions (`equal`, `strictEqual`, etc.) distinguish

docs/rules/no-arrow-tests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# qunit/no-arrow-tests
22

3-
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
4-
53
📝 Disallow arrow functions as QUnit test/module callbacks.
64

5+
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
6+
77
<!-- end auto-generated rule header -->
88

99
QUnit test and module callbacks can share state by modifying properties of

docs/rules/no-assert-equal-boolean.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# qunit/no-assert-equal-boolean
22

3+
📝 Require use of boolean assertions.
4+
35
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
46

57
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
68

7-
📝 Require use of boolean assertions.
8-
99
<!-- end auto-generated rule header -->
1010

1111
The boolean assertion functions `assert.true()` and `assert.false()` are available as of QUnit 2.11. These assertions can be stricter and clearer about intent when compared to using other assertion functions for boolean comparisons.

docs/rules/no-assert-equal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# qunit/no-assert-equal
22

3+
📝 Disallow the use of assert.equal.
4+
35
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
46

57
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
68

7-
📝 Disallow the use of assert.equal.
8-
99
<!-- end auto-generated rule header -->
1010

1111
The `assert.equal` assertion method in QUnit uses loose equality comparison. In a project which favors strict equality comparison, it is better to use `assert.strictEqual` for scalar values and either `assert.deepEqual` or `assert.propEqual` for more complex objects.

docs/rules/no-assert-logical-expression.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# qunit/no-assert-logical-expression
22

3-
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
4-
53
📝 Disallow binary logical expressions in assert arguments.
64

5+
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
6+
77
<!-- end auto-generated rule header -->
88

99
Generally, it is not a good idea to use logical expressions as assertion arguments. Logical-and assertions can be broken down into multiple assertions, while logical-or assertions may be indicative of uncertainty or nondeterminism in a test.

docs/rules/no-async-in-loops.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# qunit/no-async-in-loops
22

3-
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
4-
53
📝 Disallow async calls in loops.
64

5+
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
6+
77
<!-- end auto-generated rule header -->
88

99
Asynchronous operations are much harder to reason about in loops. To increase

docs/rules/no-async-module-callbacks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# qunit/no-async-module-callbacks
22

3-
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
4-
53
📝 Disallow async module callbacks.
64

5+
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
6+
77
<!-- end auto-generated rule header -->
88

99
QUnit does not support async module callbacks. Only test and hook callbacks

docs/rules/no-async-test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# qunit/no-async-test
22

3-
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
4-
53
📝 Disallow the use of asyncTest or QUnit.asyncTest.
64

5+
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
6+
77
<!-- end auto-generated rule header -->
88

99
QUnit 2.0 is deprecating `QUnit.asyncTest()` in favor of `assert.async()` within tests. This rule will flag `asyncTest` and `QUnit.asyncTest` calls and recommend that you use `assert.async()` instead.

docs/rules/no-commented-tests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# qunit/no-commented-tests
22

3-
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
4-
53
📝 Disallow commented tests.
64

5+
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/platinumazure/eslint-plugin-qunit/blob/main/README.md#configurations).
6+
77
<!-- end auto-generated rule header -->
88

99
When developing non-trivial projects, it is unfortunately realistic that unit

0 commit comments

Comments
 (0)