Browse Source

Fix unit tests (#3368)

Alexandru Dima 2 years ago
parent
commit
a3d4b960c5
3 changed files with 5 additions and 1 deletions
  1. 1 1
      test/smoke/runner.js
  2. 1 0
      test/unit/all.js
  3. 3 0
      test/unit/setup.js

+ 1 - 1
test/smoke/runner.js

@@ -74,7 +74,7 @@ function runTest(type, browser) {
 		proc.on('error', reject);
 		proc.on('exit', (code) => {
 			if (code === 0) {
-				resolve();
+				resolve(undefined);
 			} else {
 				reject(code);
 			}

+ 1 - 0
test/unit/all.js

@@ -58,5 +58,6 @@ requirejs(
 	},
 	function (err) {
 		console.log(err);
+		process.exit(1);
 	}
 );

+ 3 - 0
test/unit/setup.js

@@ -9,6 +9,9 @@ define('vs/nls', [], {
 		return {
 			localize: function () {
 				return 'NO_LOCALIZATION_FOR_YOU';
+			},
+			getConfiguredDefaultLocale: function () {
+				return undefined;
 			}
 		};
 	},