Files
SyncIt21andGitHub 2c76673f70 Updates Biome & Prettier with linting applied (#96394)
## About The Pull Request
- Update Biome to 2.4.16
- Update prettier to 3.8.3
- Apply biome linting rules to a bunch of files
- Convert some files from common-js to es module

## Changelog
N/A
2026-06-10 09:08:43 +12:00

63 lines
1.1 KiB
JavaScript

import { strict as assert } from 'node:assert';
import { createComment } from './comment.js';
const baseServers = {
bagil: [
{
round_id: 1,
datetime: '2020-01-01 00:00:00',
server: 'bagil',
url: 'https://tgstation13.org/round/1',
},
],
};
const baseComment = createComment(
baseServers,
null,
);
assert.equal(
baseComment,
`<!-- test_merge_bot: 1 -->
This pull request was test merged in 1 round(s).
<details><summary>Round list</summary>
### bagil
- [1 @ 2020-01-01 00:00:00](https://tgstation13.org/round/1)
</details>
`,
);
assert.equal(createComment(baseServers, baseComment), null);
assert.equal(
createComment(
{
bagil: [
{
round_id: 2,
datetime: '2020-01-01 01:00:00',
server: 'bagil',
url: 'https://tgstation13.org/round/2',
},
],
},
baseComment,
),
`<!-- test_merge_bot: 1, 2 -->
This pull request was test merged in 2 round(s).
<details><summary>Round list</summary>
### bagil
- [2 @ 2020-01-01 01:00:00](https://tgstation13.org/round/2)
- [1 @ 2020-01-01 00:00:00](https://tgstation13.org/round/1)
</details>
`,
);