You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by au...@apache.org on 2017/07/28 17:36:36 UTC

[2/2] cordova-lib git commit: CB-12361 : rebased and revised get platform details test

CB-12361 : rebased and revised get platform details test


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/02e734ce
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/02e734ce
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/02e734ce

Branch: refs/heads/master
Commit: 02e734ce97ffbb0f3c2a0e8ad3b469b50451c042
Parents: 0fe718e
Author: Audrey So <au...@apache.org>
Authored: Thu Jul 27 14:56:48 2017 -0700
Committer: Audrey So <au...@apache.org>
Committed: Thu Jul 27 14:56:48 2017 -0700

----------------------------------------------------------------------
 spec/cordova/platform/getPlatformDetailsFromDir.spec.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/02e734ce/spec/cordova/platform/getPlatformDetailsFromDir.spec.js
----------------------------------------------------------------------
diff --git a/spec/cordova/platform/getPlatformDetailsFromDir.spec.js b/spec/cordova/platform/getPlatformDetailsFromDir.spec.js
index 7a95e29..0a98b2b 100644
--- a/spec/cordova/platform/getPlatformDetailsFromDir.spec.js
+++ b/spec/cordova/platform/getPlatformDetailsFromDir.spec.js
@@ -71,9 +71,8 @@ describe('cordova/platform/getPlatformDetailsFromDir', function () {
     });
 
     it('should remove the cordova- prefix from the platform name for known platforms', function (done) {
-        platform_getPlatformDetails.platformFromName('cordova-ios');
-        expect(events.emit).toHaveBeenCalledWith('verbose', jasmine.stringMatching(/Removing "cordova-" prefix/));
         expect(platform_getPlatformDetails.platformFromName('cordova-ios')).toBe('ios');
+        expect(events.emit).toHaveBeenCalledWith('verbose', jasmine.stringMatching(/Removing "cordova-" prefix/));
         done();
     });
 });


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