From fbcfb9a5fb798531259df7b6ba17df816bfe5fbb Mon Sep 17 00:00:00 2001 From: Amir Tocker Date: Mon, 28 Jan 2019 20:20:40 +0200 Subject: [PATCH] Add `mode` to karma configuration --- karma.cloudinary-core.js | 4 ++-- karma.cloudinary-jquery-file-upload.js | 4 ++-- karma.cloudinary-jquery.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/karma.cloudinary-core.js b/karma.cloudinary-core.js index 173b2b81..b0bc0d40 100644 --- a/karma.cloudinary-core.js +++ b/karma.cloudinary-core.js @@ -1,8 +1,8 @@ // Karma configuration // Generated on Tue Jul 28 2015 09:31:57 GMT+0300 (IDT) -let isProd = mode === 'production'; +let isProd = process.env.mode === 'production'; let mode = isProd ? 'production' : 'development'; -console.log(`mode is ${mode}`); +console.log(`Mode is ${mode}`); module.exports = function(config) { return config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) diff --git a/karma.cloudinary-jquery-file-upload.js b/karma.cloudinary-jquery-file-upload.js index 8a23416f..e58c36e9 100644 --- a/karma.cloudinary-jquery-file-upload.js +++ b/karma.cloudinary-jquery-file-upload.js @@ -1,8 +1,8 @@ // Karma configuration // Generated on Tue Jul 28 2015 09:31:57 GMT+0300 (IDT) -let isProd = mode === 'production'; +let isProd = process.env.mode === 'production'; let mode = isProd ? 'production' : 'development'; -console.log(`mode is ${mode}`); +console.log(`Mode is ${mode}`); module.exports = function(config) { return config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) diff --git a/karma.cloudinary-jquery.js b/karma.cloudinary-jquery.js index b675e478..0e043f4f 100644 --- a/karma.cloudinary-jquery.js +++ b/karma.cloudinary-jquery.js @@ -1,8 +1,8 @@ // Karma configuration // Generated on Tue Jul 28 2015 09:31:57 GMT+0300 (IDT) -let isProd = mode === 'production'; +let isProd = process.env.mode === 'production'; let mode = isProd ? 'production' : 'development'; -console.log(`mode is ${mode}`); +console.log(`Mode is ${mode}`); module.exports = function(config) { return config.set({ // base path that will be used to resolve all patterns (eg. files, exclude)