Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/word-wrap-1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Feb 10, 2024
2 parents 785e857 + 383fffe commit 3f62939
Show file tree
Hide file tree
Showing 86 changed files with 2,537 additions and 2,260 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: mansona/npm-lockfile-version@v1
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "lts/*"
- name: Cache modules
uses: actions/cache@v2
with:
Expand All @@ -37,9 +37,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "lts/*"
- name: Cache npm
uses: actions/cache@v2
with:
Expand All @@ -63,12 +63,12 @@ jobs:

strategy:
matrix:
node-version: [14, 16, 18]
node-version: [16, 18, 20]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache modules
Expand Down
23 changes: 23 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changes

## 11.0.0

- [`14949b9`](https://github.com/sinonjs/referee/commit/14949b9e56fd49fadc65a30858c4847d3d8d4db6)
Use setup-node v4 and use lts/* as node-version (Maximilian Antoni)
- [`ecd5d7a`](https://github.com/sinonjs/referee/commit/ecd5d7ab090b0962a3da7fa311a60324fc0cad74)
Drop node 14, add node 20 (Maximilian Antoni)
- [`744fafb`](https://github.com/sinonjs/referee/commit/744fafbe2ef71060104b71d5813532f72ab5f95c)
npm audit (Maximilian Antoni)
- [`79cf800`](https://github.com/sinonjs/referee/commit/79cf800c878f502b02501c8a5701111b5b32907e)
Upgrade mkdirp (Maximilian Antoni)
- [`f19019f`](https://github.com/sinonjs/referee/commit/f19019fc1301fa5d121bd5e7cdeee0c3d15b126c)
Update esbuild (Maximilian Antoni)
- [`424f343`](https://github.com/sinonjs/referee/commit/424f34348dd6419c521d16ce05eaa66d95b5c6f7)
Upgrade prettier to v3 and reformat files (Maximilian Antoni)
- [`bcb67ce`](https://github.com/sinonjs/referee/commit/bcb67ced33bf50bf88ced4932c14cde41e9fa44e)
Upgrade lint-staged (Maximilian Antoni)
- [`719ebb0`](https://github.com/sinonjs/referee/commit/719ebb0b1f27368581e850d400b263d529a951dc)
Update @sinonjs/eslint-config (Maximilian Antoni)
- [`e4f0b29`](https://github.com/sinonjs/referee/commit/e4f0b29813fc1181f273124554739bf7a142f91f)
Upgrade sinon and @sinonjs/commons to latest (Maximilian Antoni)

_Released by [Maximilian Antoni](https://github.com/mantoni) on 2023-12-27._

## 10.0.1

- [`4d3e91c`](https://github.com/sinonjs/referee/commit/4d3e91c761adaf6ea793158b7833d80e9072ab03)
Expand Down
18 changes: 9 additions & 9 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ assert.match(
return "yeah";
},
},
"Yeah!"
"Yeah!",
); // Passes
```

Expand All @@ -340,7 +340,7 @@ assert.match(
return "yeah!";
},
},
/yeah/
/yeah/,
); // Passes
assert.match(234, /[a-z]/); // Fails
```
Expand All @@ -358,7 +358,7 @@ assert.match(
return "42";
},
},
42
42,
); // Passes
assert.match(234, 1234); // Fails
```
Expand Down Expand Up @@ -387,7 +387,7 @@ assert.match(
},
function () {
return true;
}
},
);

// Fails
Expand Down Expand Up @@ -417,7 +417,7 @@ assert.match(
},
{
name: "Chris",
}
},
);

// Fails
Expand Down Expand Up @@ -1328,23 +1328,23 @@ assert.exception(
function () {
throw new TypeError("Ooops!");
},
{ name: "TypeError" }
{ name: "TypeError" },
);

// Fails, wrong exception type
assert.exception(
function () {
throw new Error("Aww");
},
{ name: "TypeError" }
{ name: "TypeError" },
);

// Fails, wrong exception message
assert.exception(
function () {
throw new Error("Aww");
},
{ message: "Ooops!" }
{ message: "Ooops!" },
);

// Fails, wrong exception type
Expand All @@ -1358,7 +1358,7 @@ assert.exception(
}
return true;
},
"Type of exception is wrong!"
"Type of exception is wrong!",
); // with message to print, if test fails
```
Expand Down
8 changes: 4 additions & 4 deletions lib/assert-exception-unexpected-exception.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ describe("assert.exception unexpected exception", function () {
throw new Error("apple pie");
},
{ name: "TypeError" },
"Wow"
"Wow",
);
throw new Error("Expected to throw");
} catch (e) {
referee.assert.match(
e.message,
"Wow: Expected { name: 'TypeError' } but threw 'Error' ('apple pie')"
"Wow: Expected { name: 'TypeError' } but threw 'Error' ('apple pie')",
);
}
});
Expand All @@ -28,13 +28,13 @@ describe("assert.exception unexpected exception", function () {
throw new Error("apple pie");
},
{ name: "Error", message: "Aww" },
"Wow"
"Wow",
);
throw new Error("Expected to throw");
} catch (e) {
referee.assert.match(
e.message,
"Wow: Expected { name: 'Error', message: 'Aww' } but threw 'Error' ('apple pie')"
"Wow: Expected { name: 'Error', message: 'Aww' } but threw 'Error' ('apple pie')",
);
}
});
Expand Down
6 changes: 3 additions & 3 deletions lib/assert.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("assert", function () {
} catch (error) {
referee.assert.equals(
error.message,
"[assert] Expected to receive at least 1 argument(s)"
"[assert] Expected to receive at least 1 argument(s)",
);
}
});
Expand Down Expand Up @@ -51,7 +51,7 @@ describe("assert", function () {
function () {
referee.assert(false);
},
{ message: "[assert] Expected false to be truthy" }
{ message: "[assert] Expected false to be truthy" },
);
});

Expand Down Expand Up @@ -110,7 +110,7 @@ describe("assert", function () {
} catch (e) {
referee.assert.equals(
e.message,
"[assert] Expected to receive at least 1 argument(s)"
"[assert] Expected to receive at least 1 argument(s)",
);
}
});
Expand Down
Loading

0 comments on commit 3f62939

Please sign in to comment.