cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [cordova-lib] 02/06: CB-13056: rebased from master and updated unit tests
Date Thu, 14 Dec 2017 06:21:08 GMT
This is an automated email from the ASF dual-hosted git repository.

steven pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-lib.git

commit 388bc70567bb61cdb012a3595489a35194664498
Author: Audrey So <audreyso@apache.org>
AuthorDate: Thu Dec 7 13:29:49 2017 -0800

    CB-13056: rebased from master and updated unit tests
---
 spec/cordova/platform/list.spec.js | 6 ------
 spec/cordova/util.spec.js          | 2 +-
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/spec/cordova/platform/list.spec.js b/spec/cordova/platform/list.spec.js
index 48c17f9..3d17d79 100644
--- a/spec/cordova/platform/list.spec.js
+++ b/spec/cordova/platform/list.spec.js
@@ -65,10 +65,4 @@ describe('cordova/platform/list', function () {
         expect(platform_list.addDeprecatedInformationToPlatforms(platformList).toString()).toBe('android,ios');
         done();
     });
-
-    it('should return deprecated platform information', function (done) {
-        var platformList = ['blackberry10'];
-        expect(platform_list.addDeprecatedInformationToPlatforms(platformList).toString()).toBe('blackberry10
(deprecated)');
-        done();
-    });
 });
diff --git a/spec/cordova/util.spec.js b/spec/cordova/util.spec.js
index 40fcf5d..91045e8 100644
--- a/spec/cordova/util.spec.js
+++ b/spec/cordova/util.spec.js
@@ -330,7 +330,7 @@ describe('util module', function () {
                 util.getPlatformApiFunction('some/path', 'blackberry10');
                 expect(events.emit.calls.count()).toBe(3);
                 expect(events.emit.calls.argsFor(0)[1]).toBe('Unable to load PlatformApi
from platform. Error: Cannot find module \'some/path\'');
-                expect(events.emit.calls.argsFor(1)[1]).toBe('Platform not found or needs
polyfill.');
+                expect(events.emit.calls.argsFor(1)[1]).toBe('The platform "blackberry10"
does not appear to be a valid cordova platform. It is missing API.js. blackberry10 not supported.');
                 expect(events.emit.calls.argsFor(2)[1]).toBe('Failed to require PlatformApi
instance for platform "blackberry10". Using polyfill instead.');
             });
 

-- 
To stop receiving notification emails like this one, please contact
"commits@cordova.apache.org" <commits@cordova.apache.org>.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message