Skip to content

Commit c169c73

Browse files
committed
Remove unnecessary polyfills and uuid dep in tests.
1 parent 6d97215 commit c169c73

File tree

6 files changed

+7
-22
lines changed

6 files changed

+7
-22
lines changed

test/mocha/10-insert-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as brEdvStorage from '@bedrock/edv-storage';
55
import * as database from '@bedrock/mongodb';
66
import * as helpers from './helpers.js';
77
import {mockData} from './mock.data.js';
8-
import {v4 as uuid} from 'uuid';
8+
import {randomUUID as uuid} from 'node:crypto';
99

1010
describe('edvs.insert API', () => {
1111
before(async () => {

test/mocha/30-revocation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*!
2-
* Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
2+
* Copyright (c) 2018-2025 Digital Bazaar, Inc. All rights reserved.
33
*/
44
import * as brEdvStorage from '@bedrock/edv-storage';
55
import * as helpers from './helpers.js';
66
import {config} from '@bedrock/core';
77
import {EdvClient} from '@digitalbazaar/edv-client';
88
import {httpsAgent} from '@bedrock/https-agent';
99
import {mockData} from './mock.data.js';
10-
import {v4 as uuid} from 'uuid';
10+
import {randomUUID as uuid} from 'node:crypto';
1111
import {constants as zcapConstants} from '@digitalbazaar/zcap';
1212

1313
const {ZCAP_CONTEXT_URL} = zcapConstants;

test/mocha/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
2+
* Copyright (c) 2018-2025 Digital Bazaar, Inc. All rights reserved.
33
*/
44
import * as base58 from 'base58-universal';
55
import * as bedrock from '@bedrock/core';
@@ -24,7 +24,7 @@ import {httpsAgent} from '@bedrock/https-agent';
2424
import jsigs from 'jsonld-signatures';
2525
import {mockData} from './mock.data.js';
2626
import {promisify} from 'node:util';
27-
import {v4 as uuid} from 'uuid';
27+
import {randomUUID as uuid} from 'node:crypto';
2828
import {ZcapClient} from '@digitalbazaar/ezcap';
2929

3030
const {sign} = jsigs;

test/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@
6262
"base58-universal": "^2.0.0",
6363
"c8": "^10.1.3",
6464
"cross-env": "^7.0.3",
65-
"jsonld-signatures": "^11.5.0",
66-
"uuid": "^11.1.0",
67-
"web-streams-polyfill": "^4.1.0"
65+
"jsonld-signatures": "^11.5.0"
6866
},
6967
"c8": {
7068
"excludeNodeModules": false,

test/polyfills.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/*!
2-
* Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
2+
* Copyright (c) 2018-2025 Digital Bazaar, Inc. All rights reserved.
33
*/
4-
import './polyfills.js';
5-
64
import * as bedrock from '@bedrock/core';
75
import {getServiceIdentities} from '@bedrock/app-identity';
86
import {handlers} from '@bedrock/meter-http';

0 commit comments

Comments
 (0)