mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
cleanup
This commit is contained in:
parent
ee743946e8
commit
79535f5d61
@ -39,8 +39,7 @@ var methods = [
|
||||
label : 'os',
|
||||
list : os,
|
||||
properties : ['name', 'version']
|
||||
}
|
||||
];
|
||||
}];
|
||||
|
||||
describe('UAParser()', function () {
|
||||
var ua = 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1090.0 Safari/536.6';
|
||||
@ -63,6 +62,7 @@ for (var i in methods) {
|
||||
describe('"' + methods[i]['list'][j].ua + '"', function () {
|
||||
var expect = methods[i]['list'][j].expect;
|
||||
var result = parser.setUA(methods[i]['list'][j].ua).getResult()[methods[i]['label']];
|
||||
|
||||
methods[i]['properties'].forEach(function(m) {
|
||||
it('should return ' + methods[i]['label'] + ' ' + m + ': ' + expect[m], function () {
|
||||
assert.strictEqual(result[m], expect[m] != 'undefined' ? expect[m] : undefined);
|
||||
|
Loading…
x
Reference in New Issue
Block a user