Skip to content

Commit ae4937d

Browse files
committed
fixed tests
tests were failing because of invalid template, fixed the template so the tests work
1 parent 7227094 commit ae4937d

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

lib/nativescript-cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as fiber from "fibers";
33
import Future = require("fibers/future");
44
import * as shelljs from "shelljs";
55
shelljs.config.silent = true;
6+
shelljs.config.fatal = true;
67
import {installUncaughtExceptionListener} from "./common/errors";
78
installUncaughtExceptionListener(process.exit);
89

test/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe("Debugger tests", () => {
8686
let androidProjectService: IPlatformProjectService = testInjector.resolve("androidProjectService");
8787
let spawnFromEventCount = childProcess.spawnFromEventCount;
8888
androidProjectService.beforePrepareAllPlugins().wait();
89-
assert.isTrue(childProcess.lastCommand === "gradle");
89+
assert.isTrue(childProcess.lastCommand.indexOf("gradle") !== -1);
9090
assert.isTrue(childProcess.lastCommandArgs[0] === "clean");
9191
assert.isTrue(spawnFromEventCount === 0);
9292
assert.isTrue(spawnFromEventCount + 1 === childProcess.spawnFromEventCount);

test/npm-support.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ function setupProject(dependencies?: any): IFuture<any> {
124124
let appResourcesFolderPath = path.join(appFolderPath, "App_Resources");
125125
fs.createDirectory(appResourcesFolderPath);
126126
fs.createDirectory(path.join(appResourcesFolderPath, "Android"));
127+
fs.createDirectory(path.join(appResourcesFolderPath, "Android", "mockdir"));
127128
fs.createDirectory(path.join(appFolderPath, "tns_modules"));
128129

129130
// Creates platforms/android folder

test/test-bootstrap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as shelljs from "shelljs";
22
shelljs.config.silent = true;
3+
shelljs.config.fatal = true;
34
global._ = require("lodash");
45
global.$injector = require("../lib/common/yok").injector;
56

0 commit comments

Comments
 (0)