Skip to content

Commit f02d95b

Browse files
committed
Move init tests (#7318)
1 parent fef01a0 commit f02d95b

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

src/test/init/features/firestore.spec.ts renamed to src/init/features/firestore.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { expect } from "chai";
22
import * as _ from "lodash";
33
import * as sinon from "sinon";
44

5-
import { FirebaseError } from "../../../error";
6-
import * as firestore from "../../../init/features/firestore";
7-
import * as indexes from "../../../init/features/firestore/indexes";
8-
import * as rules from "../../../init/features/firestore/rules";
9-
import * as requirePermissions from "../../../requirePermissions";
10-
import * as apiEnabled from "../../../ensureApiEnabled";
11-
import * as checkDatabaseType from "../../../firestore/checkDatabaseType";
5+
import { FirebaseError } from "../../error";
6+
import * as firestore from "./firestore";
7+
import * as indexes from "./firestore/indexes";
8+
import * as rules from "./firestore/rules";
9+
import * as requirePermissions from "../../requirePermissions";
10+
import * as apiEnabled from "../../ensureApiEnabled";
11+
import * as checkDatabaseType from "../../firestore/checkDatabaseType";
1212

1313
describe("firestore", () => {
1414
const sandbox: sinon.SinonSandbox = sinon.createSandbox();

src/test/init/features/functions.spec.ts renamed to src/init/features/functions.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import * as sinon from "sinon";
22
import { expect } from "chai";
33

4-
import * as prompt from "../../../prompt";
5-
import { Config } from "../../../config";
6-
import { Setup } from "../../../init";
7-
import { doSetup } from "../../../init/features/functions";
8-
import { Options } from "../../../options";
9-
import { RC } from "../../../rc";
4+
import * as prompt from "../../prompt";
5+
import { Config } from "../../config";
6+
import { Setup } from "..";
7+
import { doSetup } from "./functions";
8+
import { Options } from "../../options";
9+
import { RC } from "../../rc";
1010

1111
const TEST_SOURCE_DEFAULT = "functions";
1212
const TEST_CODEBASE_DEFAULT = "default";

src/test/init/features/project.spec.ts renamed to src/init/features/project.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { expect } from "chai";
22
import * as _ from "lodash";
33
import * as sinon from "sinon";
4-
import { configstore } from "../../../configstore";
4+
import { configstore } from "../../configstore";
55

6-
import { doSetup } from "../../../init/features/project";
7-
import * as projectManager from "../../../management/projects";
8-
import * as prompt from "../../../prompt";
9-
import { Config } from "../../../config";
10-
import { FirebaseProjectMetadata } from "../../../types/project";
6+
import { doSetup } from "./project";
7+
import * as projectManager from "../../management/projects";
8+
import * as prompt from "../../prompt";
9+
import { Config } from "../../config";
10+
import { FirebaseProjectMetadata } from "../../types/project";
1111

1212
const TEST_FIREBASE_PROJECT: FirebaseProjectMetadata = {
1313
projectId: "my-project-123",

src/test/init/features/storage.spec.ts renamed to src/init/features/storage.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { expect } from "chai";
22
import * as _ from "lodash";
33
import * as sinon from "sinon";
44

5-
import { FirebaseError } from "../../../error";
6-
import { Config } from "../../../config";
7-
import { doSetup } from "../../../init/features/storage";
8-
import * as prompt from "../../../prompt";
5+
import { FirebaseError } from "../../error";
6+
import { Config } from "../../config";
7+
import { doSetup } from "./storage";
8+
import * as prompt from "../../prompt";
99

1010
describe("storage", () => {
1111
const sandbox: sinon.SinonSandbox = sinon.createSandbox();

0 commit comments

Comments
 (0)