|
1 | 1 | import * as yok from "../lib/common/yok";
|
2 | 2 | import * as stubs from "./stubs";
|
3 | 3 | import * as constants from "./../lib/constants";
|
4 |
| -import {ChildProcess} from "../lib/common/child-process"; |
| 4 | +import { ChildProcess } from "../lib/common/child-process"; |
5 | 5 | import * as ProjectServiceLib from "../lib/services/project-service";
|
6 |
| -import {ProjectNameService} from "../lib/services/project-name-service"; |
| 6 | +import { ProjectNameService } from "../lib/services/project-name-service"; |
7 | 7 | import * as ProjectDataServiceLib from "../lib/services/project-data-service";
|
8 | 8 | import * as ProjectDataLib from "../lib/project-data";
|
9 | 9 | import * as ProjectHelperLib from "../lib/common/project-helper";
|
10 |
| -import {StaticConfig} from "../lib/config"; |
| 10 | +import { StaticConfig } from "../lib/config"; |
11 | 11 | import * as NpmLib from "../lib/node-package-manager";
|
12 |
| -import {NpmInstallationManager} from "../lib/npm-installation-manager"; |
| 12 | +import { NpmInstallationManager } from "../lib/npm-installation-manager"; |
13 | 13 | import * as HttpClientLib from "../lib/common/http-client";
|
14 |
| -import {FileSystem} from "../lib/common/file-system"; |
| 14 | +import { FileSystem } from "../lib/common/file-system"; |
15 | 15 | import * as path from "path";
|
16 | 16 | import temp = require("temp");
|
17 |
| -import * as helpers from "../lib/common/helpers"; |
18 |
| -import {assert} from "chai"; |
19 |
| -import {Options} from "../lib/options"; |
20 |
| -import {HostInfo} from "../lib/common/host-info"; |
21 |
| -import {ProjectTemplatesService} from "../lib/services/project-templates-service"; |
| 17 | +import helpers = require("../lib/common/helpers"); |
| 18 | +import { assert } from "chai"; |
| 19 | +import { Options } from "../lib/options"; |
| 20 | +import { HostInfo } from "../lib/common/host-info"; |
| 21 | +import { ProjectTemplatesService } from "../lib/services/project-templates-service"; |
22 | 22 | import Future = require("fibers/future");
|
23 | 23 |
|
24 | 24 | let mockProjectNameValidator = {
|
@@ -52,10 +52,10 @@ class ProjectIntegrationTest {
|
52 | 52 | let defaultTemplatePath = path.join(cacheRoot, packageName);
|
53 | 53 | let latestVersion = npmInstallationManager.getLatestVersion(packageName).wait();
|
54 | 54 |
|
55 |
| - if(!fs.exists(path.join(defaultTemplatePath, latestVersion)).wait()) { |
| 55 | + if (!fs.exists(path.join(defaultTemplatePath, latestVersion)).wait()) { |
56 | 56 | npmInstallationManager.addToCache(packageName, latestVersion).wait();
|
57 | 57 | }
|
58 |
| - if(!fs.exists(path.join(defaultTemplatePath, latestVersion, "package", "app")).wait()) { |
| 58 | + if (!fs.exists(path.join(defaultTemplatePath, latestVersion, "package", "app")).wait()) { |
59 | 59 | npmInstallationManager.cacheUnpack(packageName, latestVersion).wait();
|
60 | 60 | }
|
61 | 61 |
|
@@ -461,7 +461,7 @@ describe("project upgrade procedure tests", () => {
|
461 | 461 |
|
462 | 462 | try {
|
463 | 463 | testInjector.resolve("projectData"); // This should trigger upgrade procedure
|
464 |
| - } catch(err) { |
| 464 | + } catch (err) { |
465 | 465 | isErrorThrown = true;
|
466 | 466 | let expectedErrorMessage = "No project found at or above '%s' and neither was a --path specified.," + tempFolder;
|
467 | 467 | assert.equal(expectedErrorMessage, err.toString());
|
|
0 commit comments