Skip to content

Commit

Permalink
fix: export test handlers and storages (storacha#1370)
Browse files Browse the repository at this point in the history
Need these exported in order to test stores for w3infra
  • Loading branch information
vasco-santos authored Apr 15, 2024
1 parent bc529f0 commit 61de1e1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/upload-api/test/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ import * as RateLimitList from './handlers/rate-limit/list.js'
import * as RateLimitRemove from './handlers/rate-limit/remove.js'
import * as Store from './handlers/store.js'
import * as Blob from './handlers/blob.js'
import * as Web3Storage from './handlers/web3.storage.js'
import * as Ucan from './handlers/ucan.js'
import * as Subscription from './handlers/subscription.js'
import * as Upload from './handlers/upload.js'
import * as Plan from './handlers/plan.js'
import * as Usage from './handlers/usage.js'
import { test as allocationsStorageTests } from './storage/allocations-storage-tests.js'
import { test as blobsStorageTests } from './storage/blobs-storage-tests.js'
import { test as tasksStorageTests } from './storage/tasks-storage-tests.js'
import { test as receiptsStorageTests } from './storage/receipts-storage-tests.js'
import { test as delegationsStorageTests } from './storage/delegations-storage-tests.js'
import { test as provisionsStorageTests } from './storage/provisions-storage-tests.js'
import { test as rateLimitsStorageTests } from './storage/rate-limits-storage-tests.js'
Expand All @@ -26,6 +32,8 @@ export const test = {
...Store.test,
...Blob.test,
...Upload.test,
...Web3Storage.test,
...Ucan.test
}

export const storageTests = {
Expand All @@ -34,6 +42,10 @@ export const storageTests = {
...rateLimitsStorageTests,
...revocationsStorageTests,
...plansStorageTests,
...allocationsStorageTests,
...blobsStorageTests,
...tasksStorageTests,
...receiptsStorageTests
}

export const handlerTests = {
Expand All @@ -47,6 +59,8 @@ export const handlerTests = {
...RateLimitRemove,
...Store.test,
...Blob.test,
...Web3Storage.test,
...Ucan.test,
...Subscription.test,
...Upload.test,
...Plan.test,
Expand All @@ -56,10 +70,17 @@ export const handlerTests = {
export {
Store,
Upload,
Blob,
Web3Storage,
Ucan,
delegationsStorageTests,
provisionsStorageTests,
rateLimitsStorageTests,
revocationsStorageTests,
plansStorageTests,
allocationsStorageTests,
blobsStorageTests,
tasksStorageTests,
receiptsStorageTests,
DebugEmail,
}

0 comments on commit 61de1e1

Please sign in to comment.