Skip to content

Commit

Permalink
Docs: fix typos (#196)
Browse files Browse the repository at this point in the history
Used `cspell` to check.
  • Loading branch information
bmish committed Jul 10, 2021
1 parent 70f1f00 commit 742325c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
* New: Adding rule no-only (fixes #11) (Kevin Partington)
* Fix: no-async-in-loops uses correct assert var in message (fixes #13) (Kevin Partington)
* New: no-assert-equal (fixes #8) (Kevin Partington)
* Update: Specifying eslint@>=1.3.0 as peerDepencency (Kevin Partington)
* Update: Specifying eslint@>=1.3.0 as peerDependency (Kevin Partington)

### 0.2.0

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-conditional-assertions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The following patterns are not warnings:

```js

if (conditon) {
if (condition) {
QUnit.test("some test", function (assert) {
assert.ok(true);
});
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/require-expect.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ or callbacks, developers are at risk of creating tests that incorrectly pass
by skipping assertions.

The "never" option disallows any `expect` calls in tests. With improved
resiliancy in QUnit 2.0 for tracking asynchronous activity, projects may
prefer to discourage use of redundannt `assert.expect` calls in tests. This
resilience in QUnit 2.0 for tracking asynchronous activity, projects may
prefer to discourage use of redundant `assert.expect` calls in tests. This
option codifies such convention.

The "never-except-zero" option disallows `except` calls, except when used to
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-loose-assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ const ERROR_MESSAGE_CONFIG = {

function buildErrorMessage(disallowed) {
const globalMessage = `Unexpected {{assertion}}. Use ${disallowed.join(", ")}.`;
const localMessasge = `Unexpected {{assertVar}}.{{assertion}}. Use ${disallowed.map((ass) => `{{assertVar}}.${ass}`).join(", ")}.`;
const localMessage = `Unexpected {{assertVar}}.{{assertion}}. Use ${disallowed.map((ass) => `{{assertVar}}.${ass}`).join(", ")}.`;
return {
unexpectedGlobalAssertionMessage: globalMessage,
unexpectedLocalAssertionMessage: localMessasge
unexpectedLocalAssertionMessage: localMessage
};
}

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/no-early-return.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ruleTester.run("no-early-return", rule, {
parserOptions: { ecmaVersion: 6 }
},

// Conditially run tests are okay
// Conditionally run tests are okay
"QUnit[shouldRunTest() ? 'test' : 'skip']('a test', function (assert) { assert.ok(true); });",
"if (shouldRunTest()) { QUnit.test('a test', function (assert) { assert.ok(true); }); }",

Expand Down
4 changes: 2 additions & 2 deletions tests/lib/rules/require-expect.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,14 @@ ruleTester.run("require-expect", rule, {
errors: [Object.assign(exceptSimpleErrorMessage("assert.expect"), { column: 1 })]
},

// "always" configration - simple case
// "always" configuration - simple case
{
code: "test('name', function(assert) { assert.ok(true) })",
options: ["always"],
errors: [alwaysErrorMessage("assert.expect")]
},

// "always" configration - global assertion
// "always" configuration - global assertion
{
code: "test('name', function() { equal(1, 1) })",
options: ["always"],
Expand Down

0 comments on commit 742325c

Please sign in to comment.