We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9616af7 commit 4f264a8Copy full SHA for 4f264a8
test/schema.uuid.test.js
@@ -5,7 +5,6 @@ const util = require('./util');
5
6
const assert = require('assert');
7
const bson = require('bson');
8
-const { randomUUID } = require('crypto');
9
10
const mongoose = start.mongoose;
11
const Schema = mongoose.Schema;
@@ -131,7 +130,7 @@ describe('SchemaUUID', function() {
131
130
132
it('works with populate (gh-13267)', async function() {
133
const userSchema = new mongoose.Schema({
134
- _id: { type: 'UUID', default: () => randomUUID() },
+ _id: { type: 'UUID', default: () => uuidv4() },
135
name: String,
136
createdBy: {
137
type: 'UUID',
0 commit comments