From 67b45681ceb3aa39956a4fb150dfcf66e3a50827 Mon Sep 17 00:00:00 2001 From: Sebastien Guillemot Date: Sun, 19 May 2024 04:47:18 +0900 Subject: [PATCH] remove unnecessary import paths on test code --- webserver/examples/tests/addressUsed.test.ts | 6 +++--- webserver/examples/tests/blockLatest.test.ts | 6 +++--- webserver/examples/tests/credentialAddresses.test.ts | 8 ++++---- webserver/examples/tests/example.ts | 8 ++++---- webserver/examples/tests/metadataNft.test.ts | 4 ++-- webserver/examples/tests/transactionHistory.test.ts | 10 +++++----- webserver/examples/tests/transactionOutput.test.ts | 6 +++--- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/webserver/examples/tests/addressUsed.test.ts b/webserver/examples/tests/addressUsed.test.ts index 93081529..c4fb6e58 100644 --- a/webserver/examples/tests/addressUsed.test.ts +++ b/webserver/examples/tests/addressUsed.test.ts @@ -1,10 +1,10 @@ import { expect } from "chai"; -import { Errors } from "@dcspark/carp-client/shared/errors"; -import { Routes } from "@dcspark/carp-client/shared/routes"; +import { Errors } from "@dcspark/carp-client"; +import { Routes } from "@dcspark/carp-client"; import { StatusCodes } from "http-status-codes"; import { bech32 } from "bech32"; import Cip5 from "@dcspark/cip5-js"; -import { query, getErrorResponse } from "@dcspark/carp-client/client/src/index"; +import { query, getErrorResponse } from "@dcspark/carp-client"; const urlBase = "http://localhost:3000"; diff --git a/webserver/examples/tests/blockLatest.test.ts b/webserver/examples/tests/blockLatest.test.ts index 89b70bbf..b0104302 100644 --- a/webserver/examples/tests/blockLatest.test.ts +++ b/webserver/examples/tests/blockLatest.test.ts @@ -1,8 +1,8 @@ import { expect } from "chai"; -import { Errors } from "@dcspark/carp-client/shared/errors"; -import { Routes } from "@dcspark/carp-client/shared/routes"; +import { Errors } from "@dcspark/carp-client"; +import { Routes } from "@dcspark/carp-client"; import { StatusCodes } from "http-status-codes"; -import { query, getErrorResponse } from "@dcspark/carp-client/client/src/index"; +import { query, getErrorResponse } from "@dcspark/carp-client"; const urlBase = "http://localhost:3000"; diff --git a/webserver/examples/tests/credentialAddresses.test.ts b/webserver/examples/tests/credentialAddresses.test.ts index a292deab..cb2c36fd 100644 --- a/webserver/examples/tests/credentialAddresses.test.ts +++ b/webserver/examples/tests/credentialAddresses.test.ts @@ -1,9 +1,9 @@ import { expect } from "chai"; -import { Errors } from "@dcspark/carp-client/shared/errors"; -import { Routes } from "@dcspark/carp-client/shared/routes"; +import { Errors } from "@dcspark/carp-client"; +import { Routes } from "@dcspark/carp-client"; import { StatusCodes } from "http-status-codes"; -import { query, getErrorResponse } from "@dcspark/carp-client/client/src/index"; -import { CREDENTIAL_LIMIT } from "@dcspark/carp-client/shared/constants"; +import { query, getErrorResponse } from "@dcspark/carp-client"; +import { CREDENTIAL_LIMIT } from "@dcspark/carp-client"; const urlBase = "http://localhost:3000"; diff --git a/webserver/examples/tests/example.ts b/webserver/examples/tests/example.ts index 2c7ee70e..03cb7d72 100644 --- a/webserver/examples/tests/example.ts +++ b/webserver/examples/tests/example.ts @@ -1,12 +1,12 @@ -import { Routes } from "@dcspark/carp-client/shared/routes"; +import { Routes } from "@dcspark/carp-client"; import { nftCborToJson, paginatedMetadataNft, paginatedTransactionHistory, -} from "@dcspark/carp-client/client/src/paginated"; -import { query } from "@dcspark/carp-client/client/src/index"; +} from "@dcspark/carp-client"; +import { query } from "@dcspark/carp-client"; import cml from "@dcspark/cardano-multiplatform-lib-nodejs"; -import type { TransactionHistoryResponse } from "@dcspark/carp-client/shared/models/TransactionHistory"; +import type { TransactionHistoryResponse } from "@dcspark/carp-client"; const urlBase = "http://localhost:3000"; diff --git a/webserver/examples/tests/metadataNft.test.ts b/webserver/examples/tests/metadataNft.test.ts index 8b3e98e5..5c3dc927 100644 --- a/webserver/examples/tests/metadataNft.test.ts +++ b/webserver/examples/tests/metadataNft.test.ts @@ -1,6 +1,6 @@ import { expect } from "chai"; -import { Routes } from "@dcspark/carp-client/shared/routes"; -import { query } from "@dcspark/carp-client/client/src/index"; +import { Routes } from "@dcspark/carp-client"; +import { query } from "@dcspark/carp-client"; import cml from "@dcspark/cardano-multiplatform-lib-nodejs"; import merge from "lodash/merge"; diff --git a/webserver/examples/tests/transactionHistory.test.ts b/webserver/examples/tests/transactionHistory.test.ts index 78253189..b1227bb0 100644 --- a/webserver/examples/tests/transactionHistory.test.ts +++ b/webserver/examples/tests/transactionHistory.test.ts @@ -1,13 +1,13 @@ import { expect } from "chai"; -import { Errors } from "@dcspark/carp-client/shared/errors"; -import { Routes } from "@dcspark/carp-client/shared/routes"; +import { Errors } from "@dcspark/carp-client"; +import { Routes } from "@dcspark/carp-client"; import { StatusCodes } from "http-status-codes"; import sortBy from "lodash/sortBy"; import { bech32 } from "bech32"; import Cip5 from "@dcspark/cip5-js"; -import { RelationFilterType } from "@dcspark/carp-client/shared/models/common"; -import { query, getErrorResponse } from "@dcspark/carp-client/client/src/index"; -import { ADDRESS_LIMIT } from "@dcspark/carp-client/shared/constants"; +import { RelationFilterType } from "@dcspark/carp-client"; +import { query, getErrorResponse } from "@dcspark/carp-client"; +import { ADDRESS_LIMIT } from "@dcspark/carp-client"; const urlBase = "http://localhost:3000"; diff --git a/webserver/examples/tests/transactionOutput.test.ts b/webserver/examples/tests/transactionOutput.test.ts index d16d927b..66338bd7 100644 --- a/webserver/examples/tests/transactionOutput.test.ts +++ b/webserver/examples/tests/transactionOutput.test.ts @@ -1,8 +1,8 @@ import { expect } from "chai"; -import { Errors } from "@dcspark/carp-client/shared/errors"; -import { Routes } from "@dcspark/carp-client/shared/routes"; +import { Errors } from "@dcspark/carp-client"; +import { Routes } from "@dcspark/carp-client"; import { StatusCodes } from "http-status-codes"; -import { query, getErrorResponse } from "@dcspark/carp-client/client/src/index"; +import { query, getErrorResponse } from "@dcspark/carp-client"; const urlBase = "http://localhost:3000";