We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a35f468 + 771fb3b commit 1e6bdf1Copy full SHA for 1e6bdf1
tests/unit/utils/utils.test.ts
@@ -36,7 +36,8 @@ describe('buildUserAgentString', () => {
36
37
const { comment } = match?.groups ?? {};
38
39
- expect(comment.split(';').length).to.be.gte(2); // at least Node and OS version should be there
+ 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
41
42
if (userAgentHeader) {
43
expect(comment.trim()).to.satisfy((s: string) => s.startsWith(`${userAgentHeader};`));
0 commit comments