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 2018/08/15 13:56:23 UTC

[cordova-lib] branch master updated: Avoid requireNoCache in pkgJson-restore.spec (#645)

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 c396026  Avoid requireNoCache in pkgJson-restore.spec (#645)
c396026 is described below

commit c3960268fc2b38616bbe11b71ffea46ef14a1f4a
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Wed Aug 15 15:56:20 2018 +0200

    Avoid requireNoCache in pkgJson-restore.spec (#645)
    
    See #644
---
 integration-tests/pkgJson-restore.spec.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/integration-tests/pkgJson-restore.spec.js b/integration-tests/pkgJson-restore.spec.js
index 00e14fa..53cc680 100644
--- a/integration-tests/pkgJson-restore.spec.js
+++ b/integration-tests/pkgJson-restore.spec.js
@@ -21,7 +21,7 @@ const prepare = require('../src/cordova/prepare');
 const cordovaPlugin = require('../src/cordova/plugin');
 const cordovaPlatform = require('../src/cordova/platform');
 const { ConfigParser } = require('cordova-common');
-const { listPlatforms, requireNoCache } = require('../src/cordova/util');
+const { listPlatforms } = require('../src/cordova/util');
 const { tmpDir: getTmpDir, testPlatform, setDefaultTimeout } = require('../spec/helpers');
 
 const TIMEOUT = 240 * 1000;
@@ -88,7 +88,7 @@ describe('restore', function () {
         return keys.reduce((obj, key) => {
             expect(obj).toBeDefined();
             return obj[key];
-        }, requireNoCache(pkgJsonPath));
+        }, fs.readJsonSync(pkgJsonPath));
     }
 
     function setPkgJson (propPath, value) {


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