Skip to content

Commit

Permalink
refactor: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jblew committed Oct 19, 2020
1 parent 445bcd7 commit ddbc1e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions src/FirebaseFunctionsRateLimiter.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
//
Expand Down Expand Up @@ -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", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/GenericRateLimiter.spec.test.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/persistence/PersistenceProviders.integration.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit ddbc1e3

Please sign in to comment.