ua-parser-js 0.7.14 → 0.7.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ua-parser-js might be problematic. Click here for more details.

package/test/test.js CHANGED
@@ -65,6 +65,21 @@ for (var i in methods) {
65
65
  });
66
66
  }
67
67
 
68
+ describe('Returns', function () {
69
+ it('getResult() should returns JSON', function(done) {
70
+ assert.deepEqual(new UAParser('').getResult(),
71
+ {
72
+ ua : '',
73
+ browser: { name: undefined, version: undefined, major: undefined },
74
+ cpu: { architecture: undefined },
75
+ device: { vendor: undefined, model: undefined, type: undefined },
76
+ engine: { name: undefined, version: undefined},
77
+ os: { name: undefined, version: undefined }
78
+ });
79
+ done();
80
+ });
81
+ });
82
+
68
83
  describe('Extending Regex', function () {
69
84
  var uaString = 'Mozilla/5.0 MyOwnBrowser/1.3';
70
85
  var myOwnBrowser = [[/(myownbrowser)\/((\d+)?[\w\.]+)/i], [UAParser.BROWSER.NAME, UAParser.BROWSER.VERSION, UAParser.BROWSER.MAJOR]];
package/.npmignore DELETED
@@ -1,24 +0,0 @@
1
- node_modules/
2
- npm-debug.log
3
- ### vim ###
4
- .*.s[a-w][a-z]
5
- *.un~
6
- Session.vim
7
- .netrwhist
8
- *~
9
- .versions
10
-
11
- ### OSX ###
12
- .DS_Store
13
- .AppleDouble
14
- .LSOverride
15
- Icon
16
-
17
-
18
- # Thumbnails
19
- ._*
20
-
21
- # Files that might appear on external disk
22
- .Spotlight-V100
23
- .Trashes
24
- .idea