Skip to content

Commit a494992

Browse files
Format custom API test assertion
Reformat a Prettier-mismatched assertion in the custom API unit tests. This assertion was introduced in 65decab (ChatGPTBox-dev#934) without matching the repository's current Prettier output, so this commit brings the file back in line with the existing formatting rules.
1 parent 3dc3ab8 commit a494992

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/unit/services/apis/custom-api.test.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ test('ignores null message.content to avoid null-prefixed answers', async (t) =>
151151
)
152152

153153
const partialAnswers = port.postedMessages.filter((m) => m.done === false).map((m) => m.answer)
154-
assert.equal(partialAnswers.some((a) => a === null), false)
154+
assert.equal(
155+
partialAnswers.some((a) => a === null),
156+
false,
157+
)
155158
assert.equal(
156159
partialAnswers.some((a) => typeof a === 'string' && a.startsWith('null')),
157160
false,

0 commit comments

Comments
 (0)