Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit b1ef2e1

Browse files
committed
Fix test for browserified Node modules.
Ref. #109. Ref. #111.
1 parent f0fa70e commit b1ef2e1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/test.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2604,13 +2604,16 @@
26042604
});
26052605

26062606
QUnit.test('parses browserified modules', function(assert) {
2607-
var actual = parse(
2608-
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36',
2607+
var expected = 'Chrome 53.0.2785.143 32-bit on Windows 10 64-bit',
2608+
actual = getPlatform(
2609+
expected,
26092610
{
2611+
'ua': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36',
2612+
'likeChrome': true,
2613+
'global': {},
26102614
'process': { 'browser': true, 'arch': 'x64', 'version': 'v6.2.1', 'platform': 'win32' }
26112615
}
2612-
),
2613-
expected = 'Chrome 54.0.2840.71 32-bit on Windows 10 64-bit';
2616+
);
26142617

26152618
assert.strictEqual(actual.description, expected);
26162619
});

0 commit comments

Comments
 (0)