mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Use node protocol when importing builtins
This commit is contained in:
@@ -14,7 +14,7 @@ import { InternalServerError } from '../../../../../../src/util/errors/InternalS
|
||||
|
||||
const STORAGE_TYPE = 'clientCredentials';
|
||||
const secret = 'verylongstringof64bytes';
|
||||
jest.mock('crypto', (): any => ({ randomBytes: (): string => secret }));
|
||||
jest.mock('node:crypto', (): any => ({ randomBytes: (): string => secret }));
|
||||
|
||||
describe('A BaseClientCredentialsStore', (): void => {
|
||||
const webId = 'http://example.com/card#me';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ServerResponse } from 'http';
|
||||
import type { ServerResponse } from 'node:http';
|
||||
import { createResponse } from 'node-mocks-http';
|
||||
import { RepresentationMetadata } from '../../../../../../src/http/representation/RepresentationMetadata';
|
||||
import { OwnerMetadataWriter } from '../../../../../../src/identity/interaction/pod/util/OwnerMetadataWriter';
|
||||
|
||||
Reference in New Issue
Block a user