1
0
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:
Denis Demchenko
2017-04-09 22:46:23 +03:00
parent b5aa54553f
commit c50d0449d3
2 changed files with 31 additions and 9 deletions

View File

@@ -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');
});