1
0
Fork 0

Fix tests build

This commit is contained in:
Chocobozzz 2023-11-24 14:51:31 +01:00
parent b017d4d02f
commit f3e9a38d7e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 4 additions and 7 deletions

View file

@ -9,7 +9,8 @@ import {
buildGlobalHTTPHeaders, buildGlobalHTTPHeaders,
signAndContextify signAndContextify
} from '@peertube/peertube-server/core/helpers/activity-pub-utils.js' } from '@peertube/peertube-server/core/helpers/activity-pub-utils.js'
import { buildDigest, signJsonLDObject } from '@peertube/peertube-server/core/helpers/peertube-crypto.js' import { buildDigest } from '@peertube/peertube-server/core/helpers/peertube-crypto.js'
import { signJsonLDObject } from '@peertube/peertube-server/core/helpers/peertube-jsonld.js'
import { ACTIVITY_PUB, HTTP_SIGNATURE } from '@peertube/peertube-server/core/initializers/constants.js' import { ACTIVITY_PUB, HTTP_SIGNATURE } from '@peertube/peertube-server/core/initializers/constants.js'
import { makePOSTAPRequest } from '@tests/shared/requests.js' import { makePOSTAPRequest } from '@tests/shared/requests.js'
import { SQLCommand } from '@tests/shared/sql-command.js' import { SQLCommand } from '@tests/shared/sql-command.js'

View file

@ -2,12 +2,8 @@
import { buildAbsoluteFixturePath } from '@peertube/peertube-node-utils' import { buildAbsoluteFixturePath } from '@peertube/peertube-node-utils'
import { signAndContextify } from '@peertube/peertube-server/core/helpers/activity-pub-utils.js' import { signAndContextify } from '@peertube/peertube-server/core/helpers/activity-pub-utils.js'
import { import { isHTTPSignatureVerified, parseHTTPSignature } from '@peertube/peertube-server/core/helpers/peertube-crypto.js'
isHTTPSignatureVerified, import { isJsonLDSignatureVerified, signJsonLDObject } from '@peertube/peertube-server/core/helpers/peertube-jsonld.js'
isJsonLDSignatureVerified,
parseHTTPSignature,
signJsonLDObject
} from '@peertube/peertube-server/core/helpers/peertube-crypto.js'
import { buildRequestStub } from '@tests/shared/tests.js' import { buildRequestStub } from '@tests/shared/tests.js'
import { expect } from 'chai' import { expect } from 'chai'
import { readJsonSync } from 'fs-extra/esm' import { readJsonSync } from 'fs-extra/esm'