Skip to content

Commit

Permalink
test: fix tests re: #13317
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jul 11, 2023
1 parent 9616af7 commit 4f264a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/schema.uuid.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const util = require('./util');

const assert = require('assert');
const bson = require('bson');
const { randomUUID } = require('crypto');

const mongoose = start.mongoose;
const Schema = mongoose.Schema;
Expand Down Expand Up @@ -131,7 +130,7 @@ describe('SchemaUUID', function() {

it('works with populate (gh-13267)', async function() {
const userSchema = new mongoose.Schema({
_id: { type: 'UUID', default: () => randomUUID() },
_id: { type: 'UUID', default: () => uuidv4() },
name: String,
createdBy: {
type: 'UUID',
Expand Down

0 comments on commit 4f264a8

Please sign in to comment.