Skip to content

Commit 50b0078

Browse files
authored
style: remove unnecessary comment
1 parent e4f4c32 commit 50b0078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/document.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12775,7 +12775,7 @@ describe('document', function() {
1277512775

1277612776
const containerSchema = new Schema({ items: [discriminated] });
1277712777
const containerModel = db.model('Test', containerSchema);
12778-
const containerModel2 = db.model('Test1', containerSchema); // Error: Discriminator with name "1" already exists
12778+
const containerModel2 = db.model('Test1', containerSchema);
1277912779
const doc1 = new containerModel({ items: [{ type: 1, prop1: 'foo' }, { type: 3, prop2: 'bar' }] });
1278012780
const doc2 = new containerModel2({ items: [{ type: 1, prop1: 'baz' }, { type: 3, prop2: 'qux' }] });
1278112781
await doc1.save();

0 commit comments

Comments
 (0)