You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2020/12/16 15:48:38 UTC

[cordova-lib] branch master updated: test(pkgJson): fix test after release of geolocation plugin v4.1.0 (#864)

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 3418b17  test(pkgJson): fix test after release of geolocation plugin v4.1.0 (#864)
3418b17 is described below

commit 3418b1779612950bb2d43a8c277ea4370faf612a
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Wed Dec 16 16:48:27 2020 +0100

    test(pkgJson): fix test after release of geolocation plugin v4.1.0 (#864)
    
    A test got hung up on whether the plugin defined any variables or not.
    However, that was beside the point of the test in the first place. It
    should only check that the key for the plugin is present. I updated the
    test accordingly.
    
    Fixes #863
---
 integration-tests/pkgJson.spec.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/integration-tests/pkgJson.spec.js b/integration-tests/pkgJson.spec.js
index 0f4ae8d..bc1d4e6 100644
--- a/integration-tests/pkgJson.spec.js
+++ b/integration-tests/pkgJson.spec.js
@@ -168,7 +168,7 @@ describe('pkgJson', function () {
                 }).then(function () {
                     // Expect that only the plugin that had --save was added.
                     expect(getPkgJson('cordova.plugins')).toEqual({
-                        [SAVED_PLUGIN]: {}
+                        [SAVED_PLUGIN]: jasmine.anything()
                     });
                 });
         });


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