Skip to content

Commit a1a2300

Browse files
committed
fix: snippet syntax
1 parent 12fce58 commit a1a2300

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/site/pages/en/learn/test-runner/using-test-runner.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,15 @@ import { test } from 'node:test';
7777
import { detectOsInUserAgent } from '';
7878

7979
const userAgents = [
80-
{ ua: /**/, os: 'WIN' },
80+
{
81+
ua: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.3',
82+
os: 'WIN',
83+
},
8184
//
8285
];
8386

8487
test('Detect OS via user-agent', { concurrency: true }, t => {
85-
for (const { os, ua } from userAgents) {
88+
for (const { os, ua } of userAgents) {
8689
t.test(ua, () => assert.equal(detectOsInUserAgent(ua), os));
8790
}
8891
});

0 commit comments

Comments
 (0)