From 5b7915e2d6b72956502181a5b799f0aed4043252 Mon Sep 17 00:00:00 2001 From: Gilles Callebaut Date: Thu, 23 Jun 2016 21:22:22 +0200 Subject: [PATCH] Don't check for encryption in the browser --- tests/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/main.js b/tests/main.js index e932abd..71c2adc 100644 --- a/tests/main.js +++ b/tests/main.js @@ -343,6 +343,10 @@ exports.defineAutoTests = function() { mode: "password", value: "SomeOhterPassword" }, function(result) { + // if we are in the browser + if(window.cordova && window.cordova.platformId === 'browser') || !(window.phonegap || window.cordova){ + done(); + } fail("We've giving the pasword so it shouldn't work"); NativeStorage.remove("ref_to_secret_value", function() { fail("We shouldn't got here... maybe we are in a browser!");