Skip to content

Commit f18568c

Browse files
committed
Fix wrong tap imports
1 parent fd9d818 commit f18568c

File tree

124 files changed

+124
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+124
-124
lines changed

library/agent/Agent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as FakeTimers from "@sinonjs/fake-timers";
22
import { hostname, platform, release } from "os";
3-
import * as t from "tap";
3+
import t from "tap";
44
import { getSemverNodeVersion } from "../helpers/getNodeVersion";
55
import { ip } from "../helpers/ipAddress";
66
import { MongoDB } from "../sinks/MongoDB";

library/agent/Context.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { extractStringsFromUserInputCached } from "../helpers/extractStringsFromUserInputCached";
33
import {
44
type Context,

library/agent/Hostnames.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Hostnames } from "./Hostnames";
33

44
t.test("it works", async () => {

library/agent/InspectionStatistics.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as FakeTimers from "@sinonjs/fake-timers";
2-
import * as t from "tap";
2+
import t from "tap";
33
import { InspectionStatistics } from "./InspectionStatistics";
44

55
t.test("it resets stats", async () => {

library/agent/Routes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Routes } from "./Routes";
33
import { Context } from "./Context";
44

library/agent/ServiceConfig.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { ServiceConfig } from "./ServiceConfig";
33

44
t.test("it returns false if empty rules", async () => {

library/agent/Users.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as FakeTimers from "@sinonjs/fake-timers";
2-
import * as t from "tap";
2+
import t from "tap";
33
import { Users } from "./Users";
44

55
t.test("it works", async () => {

library/agent/api-discovery/getApiAuthType.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { getApiAuthType as get } from "./getApiAuthType";
33
import type { Context } from "../Context";
44

library/agent/api-discovery/getBodyDataType.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { getBodyDataType } from "./getBodyDataType";
33

44
t.test("it works", async (t) => {

library/agent/api-discovery/getDataSchema.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { getDataSchema } from "./getDataSchema";
33

44
t.test("it works", async (t) => {

library/agent/api-discovery/mergeApiAuthTypes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { mergeApiAuthTypes as merge } from "./mergeApiAuthTypes";
33

44
t.test("it works", async (t) => {

library/agent/api-discovery/mergeDataSchemas.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { mergeDataSchemas } from "./mergeDataSchemas";
33
import { getDataSchema } from "./getDataSchema";
44

library/agent/api/ReportingAPINodeHTTP.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as express from "express";
22
import * as asyncHandler from "express-async-handler";
3-
import * as t from "tap";
3+
import t from "tap";
44
import { ReportingAPINodeHTTP } from "./ReportingAPINodeHTTP";
55
import { Event } from "./Event";
66
import { Token } from "./Token";

library/agent/api/ReportingAPIRateLimitedClientSide.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { ReportingAPIForTesting } from "./ReportingAPIForTesting";
33
import { ReportingAPIRateLimitedClientSide } from "./ReportingAPIRateLimitedClientSide";
44
import { Token } from "./Token";

library/agent/api/ReportingAPIRateLimitedServerSide.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as FakeTimers from "@sinonjs/fake-timers";
2-
import * as t from "tap";
2+
import t from "tap";
33
import { ReportingAPIForTesting } from "./ReportingAPIForTesting";
44
import { ReportingAPIRateLimitedServerSide } from "./ReportingAPIRateLimitedServerSide";
55
import { Event } from "./Event";

library/agent/api/ReportingAPIThatValidatesToken.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { ReportingAPIForTesting } from "./ReportingAPIForTesting";
33
import { ReportingAPIThatValidatesToken } from "./ReportingAPIThatValidatesToken";
44
import { Event } from "./Event";

library/agent/api/Token.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Token } from "./Token";
33

44
t.test("it throws error if token is empty", async (t) => {

library/agent/applyHooks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Agent } from "./Agent";
33
import { ReportingAPIForTesting } from "./api/ReportingAPIForTesting";
44
import { Token } from "./api/Token";

library/agent/context/user.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Agent } from "../Agent";
33
import { setInstance } from "../AgentSingleton";
44
import { ReportingAPIForTesting } from "../api/ReportingAPIForTesting";

library/agent/hooks/Hooks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Hooks } from "./Hooks";
33

44
t.test("package throws error if name is empty", async (t) => {

library/agent/hooks/getModuleInfoFromPath.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { getModuleInfoFromPath } from "./getModuleInfoFromPath";
33

44
t.test("it works", async (t) => {

library/agent/hooks/isBuiltinModule.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { isBuiltinModule } from "./isBuiltinModule";
33

44
t.test("it works", async (t) => {

library/agent/hooks/isMainJsFile.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { isMainJsFile } from "./isMainJsFile";
33
import type { PackageJson } from "type-fest";
44

library/agent/hooks/wrapExport.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { wrapExport } from "./wrapExport";
33
import { Agent } from "../Agent";
44
import { LoggerForTesting } from "../logger/LoggerForTesting";

library/agent/hooks/wrapNewInstance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable max-classes-per-file */
2-
import * as t from "tap";
2+
import t from "tap";
33
import { wrapNewInstance } from "./wrapNewInstance";
44
import { Agent } from "../Agent";
55
import { LoggerForTesting } from "../logger/LoggerForTesting";

library/agent/hooks/wrapRequire.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import {
33
wrapRequire,
44
setPackagesToPatch,

library/agent/realtime/pollForChanges.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import * as fetch from "../../helpers/fetch";
33
import { wrap } from "../../helpers/wrap";
44
import { Token } from "../api/Token";

library/helpers/buildRouteFromURL.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { buildRouteFromURL } from "./buildRouteFromURL";
33
import * as ObjectID from "bson-objectid";
44

library/helpers/cleanupStackTrace.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { cleanupStackTrace } from "./cleanupStackTrace";
33

44
t.test("it works", async () => {

library/helpers/convertRequestBodyToString.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { convertRequestBodyToString } from "./convertRequestBodyToString";
33

44
t.test("it converts object body to JSON string", async (t) => {

library/helpers/escapeHTML.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { escapeHTML } from "./escapeHTML";
33

44
t.test('should escape "&" character', async (t) => {

library/helpers/escapeStringRegexp.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { escapeStringRegexp } from "./escapeStringRegexp";
33

44
t.test("main", async (t) => {

library/helpers/extractStringsFromUserInput.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable camelcase */
2-
import * as t from "tap";
2+
import t from "tap";
33
import { extractStringsFromUserInput } from "./extractStringsFromUserInput";
44

55
t.test("empty object returns empty array", async () => {

library/helpers/featureFlags.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { isFeatureEnabled } from "./featureFlags";
33

44
t.test("isFeatureEnabled", async (t) => {

library/helpers/filterEmptyRequestHeaders.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { filterEmptyRequestHeaders } from "./filterEmptyRequestHeaders";
33

44
t.test("it filters empty headers", async (t) => {

library/helpers/getAgentVersion.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { getAgentVersion } from "./getAgentVersion";
33

44
t.test("it returns the current library version", async () => {

library/helpers/getCurrentAndNextSegments.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { getCurrentAndNextSegments } from "./getCurrentAndNextSegments";
33

44
t.test(

library/helpers/getMaxBodySize.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { getMaxBodySize } from "./getMaxBodySize";
33

44
t.test(

library/helpers/getNodeVersion.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import {
33
getMajorNodeVersion,
44
getMinorNodeVersion,

library/helpers/getPackageVersion.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { getPackageVersion } from "./getPackageVersion";
33

44
t.test("it resolves the version of a package", async (t) => {

library/helpers/getPortFromURL.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { getPortFromURL } from "./getPortFromURL";
33

44
t.test("it works", async (t) => {

library/helpers/ipAddress.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { wrap } from "./wrap";
33
import { ip } from "./ipAddress";
44

library/helpers/isAikidoCI.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { isAikidoCI } from "./isAikidoCI";
33

44
t.test("get aikido ci env", async (t) => {

library/helpers/isPackageInstalled.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { isPackageInstalled } from "./isPackageInstalled";
33

44
t.test("it returns true if the package is installed", async (t) => {

library/helpers/isPlainObject.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { isPlainObject } from "./isPlainObject";
33

44
t.test(

library/helpers/limitLengthMetadata.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { limitLengthMetadata } from "./limitLengthMetadata";
33

44
t.test("it limits metadata length", async () => {

library/helpers/looksLikeASecret.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { randomInt } from "crypto";
2-
import * as t from "tap";
2+
import t from "tap";
33
import { looksLikeASecret } from "./looksLikeASecret";
44

55
const lower = "abcdefghijklmnopqrstuvwxyz";

library/helpers/matchEndpoints.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Context } from "../agent/Context";
33
import { buildRouteFromURL } from "./buildRouteFromURL";
44
import { matchEndpoints } from "./matchEndpoints";

library/helpers/package-json.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22

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

library/helpers/parseCookies.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { parse } from "./parseCookies";
33

44
t.test("should parse cookie string to object", async () => {

library/helpers/percentiles.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { percentiles } from "./percentiles";
33

44
function generateArray(

library/helpers/satisfiesVersion.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { satisfiesVersion } from "./satisfiesVersion";
33

44
t.test("it returns false if empty strings", async () => {

library/helpers/tryDecodeAsJWT.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { tryDecodeAsJWT } from "./tryDecodeAsJWT";
33

44
t.test("it returns undefined for empty string", async () => {

library/helpers/tryParseURL.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { tryParseURL } from "./tryParseURL";
33

44
t.test("it returns undefined if invalid URL", async () => {

library/helpers/tryParseURLParams.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { tryParseURLParams } from "./tryParseURLParams";
33

44
t.test("it returns undefined if invalid URL", async () => {

library/helpers/tryParseURLPath.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { tryParseURLPath } from "./tryParseURLPath";
33

44
t.test("it returns undefined if nothing found", async () => {

library/helpers/wrap.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { isWrapped, wrap } from "./wrap";
33

44
class MyClass {

library/ratelimiting/LRUMap.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { LRUMap } from "./LRUMap";
33

44
t.test("it creates LRUMap", async (t) => {

library/ratelimiting/RateLimiter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import * as FakeTimers from "@sinonjs/fake-timers";
33
import { RateLimiter } from "./RateLimiter";
44

library/ratelimiting/getRateLimitedEndpoint.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import type { Context } from "../agent/Context";
33
import { ServiceConfig } from "../agent/ServiceConfig";
44
import { getRateLimitedEndpoint } from "./getRateLimitedEndpoint";

library/ratelimiting/shouldRateLimitRequest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Agent } from "../agent/Agent";
33
import { ReportingAPIForTesting } from "../agent/api/ReportingAPIForTesting";
44
import { Token } from "../agent/api/Token";

library/sinks/AwsSDKVersion2.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Agent } from "../agent/Agent";
33
import { ReportingAPIForTesting } from "../agent/api/ReportingAPIForTesting";
44
import { Context, runWithContext } from "../agent/Context";

library/sinks/BetterSQLite3.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Agent } from "../agent/Agent";
33
import { ReportingAPIForTesting } from "../agent/api/ReportingAPIForTesting";
44
import { runWithContext, type Context } from "../agent/Context";

library/sinks/ChildProcess.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from "tap";
1+
import t from "tap";
22
import { Agent } from "../agent/Agent";
33
import { ReportingAPIForTesting } from "../agent/api/ReportingAPIForTesting";
44
import { Context, runWithContext } from "../agent/Context";

0 commit comments

Comments
 (0)