Skip to content

Commit 1e6bdf1

Browse files
committed
resolved conflicts
2 parents a35f468 + 771fb3b commit 1e6bdf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/utils/utils.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ describe('buildUserAgentString', () => {
3636

3737
const { comment } = match?.groups ?? {};
3838

39-
expect(comment.split(';').length).to.be.gte(2); // at least Node and OS version should be there
39+
const parts = comment.split(';').map((s) => s.trim());
40+
expect(parts.length).to.be.gte(2); // at least Node and OS version should be there
4041

4142
if (userAgentHeader) {
4243
expect(comment.trim()).to.satisfy((s: string) => s.startsWith(`${userAgentHeader};`));

0 commit comments

Comments
 (0)