Skip to content

Commit

Permalink
Fix wrong tap imports
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Oct 3, 2024
1 parent fd9d818 commit f18568c
Show file tree
Hide file tree
Showing 124 changed files with 124 additions and 124 deletions.
2 changes: 1 addition & 1 deletion library/agent/Agent.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as FakeTimers from "@sinonjs/fake-timers";
import { hostname, platform, release } from "os";
import * as t from "tap";
import t from "tap";
import { getSemverNodeVersion } from "../helpers/getNodeVersion";
import { ip } from "../helpers/ipAddress";
import { MongoDB } from "../sinks/MongoDB";
Expand Down
2 changes: 1 addition & 1 deletion library/agent/Context.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { extractStringsFromUserInputCached } from "../helpers/extractStringsFromUserInputCached";
import {
type Context,
Expand Down
2 changes: 1 addition & 1 deletion library/agent/Hostnames.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Hostnames } from "./Hostnames";

t.test("it works", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/InspectionStatistics.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as FakeTimers from "@sinonjs/fake-timers";
import * as t from "tap";
import t from "tap";
import { InspectionStatistics } from "./InspectionStatistics";

t.test("it resets stats", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/Routes.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Routes } from "./Routes";
import { Context } from "./Context";

Expand Down
2 changes: 1 addition & 1 deletion library/agent/ServiceConfig.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { ServiceConfig } from "./ServiceConfig";

t.test("it returns false if empty rules", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/Users.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as FakeTimers from "@sinonjs/fake-timers";
import * as t from "tap";
import t from "tap";
import { Users } from "./Users";

t.test("it works", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/api-discovery/getApiAuthType.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { getApiAuthType as get } from "./getApiAuthType";
import type { Context } from "../Context";

Expand Down
2 changes: 1 addition & 1 deletion library/agent/api-discovery/getBodyDataType.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { getBodyDataType } from "./getBodyDataType";

t.test("it works", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/api-discovery/getDataSchema.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { getDataSchema } from "./getDataSchema";

t.test("it works", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/api-discovery/mergeApiAuthTypes.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { mergeApiAuthTypes as merge } from "./mergeApiAuthTypes";

t.test("it works", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/api-discovery/mergeDataSchemas.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { mergeDataSchemas } from "./mergeDataSchemas";
import { getDataSchema } from "./getDataSchema";

Expand Down
2 changes: 1 addition & 1 deletion library/agent/api/ReportingAPINodeHTTP.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from "express";
import * as asyncHandler from "express-async-handler";
import * as t from "tap";
import t from "tap";
import { ReportingAPINodeHTTP } from "./ReportingAPINodeHTTP";
import { Event } from "./Event";
import { Token } from "./Token";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { ReportingAPIForTesting } from "./ReportingAPIForTesting";
import { ReportingAPIRateLimitedClientSide } from "./ReportingAPIRateLimitedClientSide";
import { Token } from "./Token";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as FakeTimers from "@sinonjs/fake-timers";
import * as t from "tap";
import t from "tap";
import { ReportingAPIForTesting } from "./ReportingAPIForTesting";
import { ReportingAPIRateLimitedServerSide } from "./ReportingAPIRateLimitedServerSide";
import { Event } from "./Event";
Expand Down
2 changes: 1 addition & 1 deletion library/agent/api/ReportingAPIThatValidatesToken.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { ReportingAPIForTesting } from "./ReportingAPIForTesting";
import { ReportingAPIThatValidatesToken } from "./ReportingAPIThatValidatesToken";
import { Event } from "./Event";
Expand Down
2 changes: 1 addition & 1 deletion library/agent/api/Token.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Token } from "./Token";

t.test("it throws error if token is empty", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/applyHooks.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Agent } from "./Agent";
import { ReportingAPIForTesting } from "./api/ReportingAPIForTesting";
import { Token } from "./api/Token";
Expand Down
2 changes: 1 addition & 1 deletion library/agent/context/user.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Agent } from "../Agent";
import { setInstance } from "../AgentSingleton";
import { ReportingAPIForTesting } from "../api/ReportingAPIForTesting";
Expand Down
2 changes: 1 addition & 1 deletion library/agent/hooks/Hooks.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Hooks } from "./Hooks";

t.test("package throws error if name is empty", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/hooks/getModuleInfoFromPath.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { getModuleInfoFromPath } from "./getModuleInfoFromPath";

t.test("it works", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/hooks/isBuiltinModule.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { isBuiltinModule } from "./isBuiltinModule";

t.test("it works", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/agent/hooks/isMainJsFile.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { isMainJsFile } from "./isMainJsFile";
import type { PackageJson } from "type-fest";

Expand Down
2 changes: 1 addition & 1 deletion library/agent/hooks/wrapExport.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { wrapExport } from "./wrapExport";
import { Agent } from "../Agent";
import { LoggerForTesting } from "../logger/LoggerForTesting";
Expand Down
2 changes: 1 addition & 1 deletion library/agent/hooks/wrapNewInstance.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable max-classes-per-file */
import * as t from "tap";
import t from "tap";
import { wrapNewInstance } from "./wrapNewInstance";
import { Agent } from "../Agent";
import { LoggerForTesting } from "../logger/LoggerForTesting";
Expand Down
2 changes: 1 addition & 1 deletion library/agent/hooks/wrapRequire.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import {
wrapRequire,
setPackagesToPatch,
Expand Down
2 changes: 1 addition & 1 deletion library/agent/realtime/pollForChanges.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import * as fetch from "../../helpers/fetch";
import { wrap } from "../../helpers/wrap";
import { Token } from "../api/Token";
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/buildRouteFromURL.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { buildRouteFromURL } from "./buildRouteFromURL";
import * as ObjectID from "bson-objectid";

Expand Down
2 changes: 1 addition & 1 deletion library/helpers/cleanupStackTrace.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { cleanupStackTrace } from "./cleanupStackTrace";

t.test("it works", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/convertRequestBodyToString.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { convertRequestBodyToString } from "./convertRequestBodyToString";

t.test("it converts object body to JSON string", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/escapeHTML.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { escapeHTML } from "./escapeHTML";

t.test('should escape "&" character', async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/escapeStringRegexp.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { escapeStringRegexp } from "./escapeStringRegexp";

t.test("main", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/extractStringsFromUserInput.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable camelcase */
import * as t from "tap";
import t from "tap";
import { extractStringsFromUserInput } from "./extractStringsFromUserInput";

t.test("empty object returns empty array", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/featureFlags.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { isFeatureEnabled } from "./featureFlags";

t.test("isFeatureEnabled", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/filterEmptyRequestHeaders.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { filterEmptyRequestHeaders } from "./filterEmptyRequestHeaders";

t.test("it filters empty headers", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/getAgentVersion.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { getAgentVersion } from "./getAgentVersion";

t.test("it returns the current library version", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/getCurrentAndNextSegments.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { getCurrentAndNextSegments } from "./getCurrentAndNextSegments";

t.test(
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/getMaxBodySize.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { getMaxBodySize } from "./getMaxBodySize";

t.test(
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/getNodeVersion.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import {
getMajorNodeVersion,
getMinorNodeVersion,
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/getPackageVersion.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { getPackageVersion } from "./getPackageVersion";

t.test("it resolves the version of a package", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/getPortFromURL.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { getPortFromURL } from "./getPortFromURL";

t.test("it works", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/ipAddress.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { wrap } from "./wrap";
import { ip } from "./ipAddress";

Expand Down
2 changes: 1 addition & 1 deletion library/helpers/isAikidoCI.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { isAikidoCI } from "./isAikidoCI";

t.test("get aikido ci env", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/isPackageInstalled.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { isPackageInstalled } from "./isPackageInstalled";

t.test("it returns true if the package is installed", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/isPlainObject.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { isPlainObject } from "./isPlainObject";

t.test(
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/limitLengthMetadata.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { limitLengthMetadata } from "./limitLengthMetadata";

t.test("it limits metadata length", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/looksLikeASecret.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { randomInt } from "crypto";
import * as t from "tap";
import t from "tap";
import { looksLikeASecret } from "./looksLikeASecret";

const lower = "abcdefghijklmnopqrstuvwxyz";
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/matchEndpoints.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Context } from "../agent/Context";
import { buildRouteFromURL } from "./buildRouteFromURL";
import { matchEndpoints } from "./matchEndpoints";
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/package-json.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";

const PackageJson = require("../package.json");

Expand Down
2 changes: 1 addition & 1 deletion library/helpers/parseCookies.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { parse } from "./parseCookies";

t.test("should parse cookie string to object", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/percentiles.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { percentiles } from "./percentiles";

function generateArray(
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/satisfiesVersion.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { satisfiesVersion } from "./satisfiesVersion";

t.test("it returns false if empty strings", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/tryDecodeAsJWT.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { tryDecodeAsJWT } from "./tryDecodeAsJWT";

t.test("it returns undefined for empty string", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/tryParseURL.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { tryParseURL } from "./tryParseURL";

t.test("it returns undefined if invalid URL", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/tryParseURLParams.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { tryParseURLParams } from "./tryParseURLParams";

t.test("it returns undefined if invalid URL", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/tryParseURLPath.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { tryParseURLPath } from "./tryParseURLPath";

t.test("it returns undefined if nothing found", async () => {
Expand Down
2 changes: 1 addition & 1 deletion library/helpers/wrap.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { isWrapped, wrap } from "./wrap";

class MyClass {
Expand Down
2 changes: 1 addition & 1 deletion library/ratelimiting/LRUMap.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { LRUMap } from "./LRUMap";

t.test("it creates LRUMap", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion library/ratelimiting/RateLimiter.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import * as FakeTimers from "@sinonjs/fake-timers";
import { RateLimiter } from "./RateLimiter";

Expand Down
2 changes: 1 addition & 1 deletion library/ratelimiting/getRateLimitedEndpoint.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import type { Context } from "../agent/Context";
import { ServiceConfig } from "../agent/ServiceConfig";
import { getRateLimitedEndpoint } from "./getRateLimitedEndpoint";
Expand Down
2 changes: 1 addition & 1 deletion library/ratelimiting/shouldRateLimitRequest.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Agent } from "../agent/Agent";
import { ReportingAPIForTesting } from "../agent/api/ReportingAPIForTesting";
import { Token } from "../agent/api/Token";
Expand Down
2 changes: 1 addition & 1 deletion library/sinks/AwsSDKVersion2.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Agent } from "../agent/Agent";
import { ReportingAPIForTesting } from "../agent/api/ReportingAPIForTesting";
import { Context, runWithContext } from "../agent/Context";
Expand Down
2 changes: 1 addition & 1 deletion library/sinks/BetterSQLite3.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Agent } from "../agent/Agent";
import { ReportingAPIForTesting } from "../agent/api/ReportingAPIForTesting";
import { runWithContext, type Context } from "../agent/Context";
Expand Down
2 changes: 1 addition & 1 deletion library/sinks/ChildProcess.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from "tap";
import t from "tap";
import { Agent } from "../agent/Agent";
import { ReportingAPIForTesting } from "../agent/api/ReportingAPIForTesting";
import { Context, runWithContext } from "../agent/Context";
Expand Down
Loading

0 comments on commit f18568c

Please sign in to comment.