diff --git a/package.json b/package.json index 8dbb2a1..b99d824 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "codecov": "^3.8.0", "husky": "^4.3.0", "istanbul": "^0.4.5", - "jblew-tslint-config": "^1.1.0", + "jblew-tslint-config": "^0.1.0", "lodash": "^4.17.20", "mocha": "^8.2.0", "nyc": "^15.1.0", diff --git a/src/FirebaseFunctionsRateLimiter.integration.test.ts b/src/FirebaseFunctionsRateLimiter.integration.test.ts index 14d9734..8916a1f 100644 --- a/src/FirebaseFunctionsRateLimiter.integration.test.ts +++ b/src/FirebaseFunctionsRateLimiter.integration.test.ts @@ -3,11 +3,11 @@ import * as firebase from "@firebase/testing"; import * as BluebirdPromise from "bluebird"; import * as functions from "firebase-functions"; -import { _, expect, uuid } from "./_test/test_environment"; import { FirebaseFunctionsRateLimiter } from "./FirebaseFunctionsRateLimiter"; import { mock } from "./FirebaseFunctionsRateLimiter.mock.integration.test"; import { FirebaseFunctionsRateLimiterConfiguration } from "./FirebaseFunctionsRateLimiterConfiguration"; import { PersistenceRecord } from "./persistence/PersistenceRecord"; +import { expect, uuid, _ } from "./_test/test_environment"; describe("FirebaseFunctionsRateLimiter", () => { // @@ -44,8 +44,7 @@ describe("FirebaseFunctionsRateLimiter", () => { }, ].forEach(test => describe(test.name, () => { - // - const backends: Array<"firestore" | "realtimedb" | "mock"> = ["firestore", "realtimedb", "mock"]; + const backends = ["firestore", "realtimedb", "mock"] as const; backends.forEach((backend: "firestore" | "realtimedb" | "mock") => describe("Backend " + backend, () => { describe("isQuotaExceededOrRecordUsage", () => { diff --git a/src/GenericRateLimiter.spec.test.ts b/src/GenericRateLimiter.spec.test.ts index baa5079..02b56fe 100644 --- a/src/GenericRateLimiter.spec.test.ts +++ b/src/GenericRateLimiter.spec.test.ts @@ -1,10 +1,10 @@ /* tslint:disable:max-classes-per-file */ -import { _, expect, sinon } from "./_test/test_environment"; import { FirebaseFunctionsRateLimiterConfiguration } from "./FirebaseFunctionsRateLimiterConfiguration"; import { GenericRateLimiter } from "./GenericRateLimiter"; import { PersistenceProviderMock } from "./persistence/PersistenceProviderMock"; import { TimestampProviderMock } from "./timestamp/TimestampProviderMock.test"; +import { expect, sinon, _ } from "./_test/test_environment"; const sampleConfiguration: FirebaseFunctionsRateLimiterConfiguration.ConfigurationFull = { name: "rate_limiter_1", diff --git a/src/persistence/PersistenceProviders.integration.test.ts b/src/persistence/PersistenceProviders.integration.test.ts index c30d53c..1c05584 100644 --- a/src/persistence/PersistenceProviders.integration.test.ts +++ b/src/persistence/PersistenceProviders.integration.test.ts @@ -1,7 +1,7 @@ /* tslint:disable:max-classes-per-file */ import * as firebase from "@firebase/testing"; -import { _, expect, sinon, uuid } from "../_test/test_environment"; +import { expect, sinon, uuid, _ } from "../_test/test_environment"; import { FirestorePersistenceProvider } from "./FirestorePersistenceProvider"; import { PersistenceProvider } from "./PersistenceProvider";