mirror of
https://gitee.com/shuto-github/cordova-plugin-network-information.git
synced 2026-04-22 00:00:02 +08:00
refactor(eslint): use cordova-eslint (#115)
This commit is contained in:
+5
-5
@@ -31,14 +31,14 @@ exports.defineAutoTests = function () {
|
||||
|
||||
it('network.spec.2 should be set to a valid value', function () {
|
||||
var validValues = {
|
||||
'unknown': 1,
|
||||
'ethernet': 1,
|
||||
'wifi': 1,
|
||||
unknown: 1,
|
||||
ethernet: 1,
|
||||
wifi: 1,
|
||||
'2g': 1,
|
||||
'cellular': 1,
|
||||
cellular: 1,
|
||||
'3g': 1,
|
||||
'4g': 1,
|
||||
'none': 1
|
||||
none: 1
|
||||
};
|
||||
expect(validValues[navigator.connection.type]).toBe(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user