You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2018/02/07 15:58:06 UTC
[cordova-windows] 12/16: default value that old nodes also
understand
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-CB-13829
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git
commit f0240690225d991674115ba9f3d34208093675ef
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Thu Jan 25 22:50:48 2018 +0100
default value that old nodes also understand
---
spec/e2e/endtoend.spec.js | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/spec/e2e/endtoend.spec.js b/spec/e2e/endtoend.spec.js
index 41a19bf..8a012a5 100644
--- a/spec/e2e/endtoend.spec.js
+++ b/spec/e2e/endtoend.spec.js
@@ -35,19 +35,24 @@ describe('Cordova create and build', function () {
var appPackagesFolder = path.join(buildDirectory, projectFolder, 'AppPackages');
var buildScriptPath = '"' + path.join(buildDirectory, projectFolder, 'cordova', 'build') + '"';
var silent = true;
+ function verifySubDirContainsFile (subDirName, fileName, count) {
+ count = typeof count !== 'undefined' ? count : 1;
- function verifySubDirContainsFile (subDirName, fileName, count = 1) {
var subDir = path.join(appPackagesFolder, subDirName);
var packages = shell.ls(subDir);
expect(packages.filter(function (file) { return file.match(fileName); }).length).toBe(count);
}
- function _expectExist (fileNamePattern, count = 1) {
+ function _expectExist (fileNamePattern, count) {
+ count = typeof count !== 'undefined' ? count : 1;
+
var packages = shell.ls(appPackagesFolder);
expect(packages.filter(function (file) { return file.match(fileNamePattern); }).length).toBe(count);
}
- function _expectSubdirAndFileExist (subDirName, fileName, count = 1) {
+ function _expectSubdirAndFileExist (subDirName, fileName, count) {
+ count = typeof count !== 'undefined' ? count : 1;
+
_expectExist(subDirName);
verifySubDirContainsFile(subDirName, fileName, count);
}
--
To stop receiving notification emails like this one, please contact
janpio@apache.org.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org