mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Add Parser#getBrowserName and Parser#getBrowserVersion
This commit is contained in:
@@ -23,4 +23,13 @@ test('_parseBrowser', t => {
|
||||
t.truthy(spy.called);
|
||||
t.is(b.name, 'Opera');
|
||||
t.is(b.version, '43.0.2442.1165');
|
||||
parser._parseBrowser.restore();
|
||||
});
|
||||
|
||||
test('getBrowserName', t => {
|
||||
t.is(parser.getBrowserName(), 'Opera');
|
||||
});
|
||||
|
||||
test('getBrowserVersion', t => {
|
||||
t.is(parser.getBrowserVersion(), '43.0.2442.1165');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user