Skip to content

Commit 872a2e7

Browse files
committed
refactor: remove unnecessary variables
1 parent 17469d3 commit 872a2e7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/document.test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14307,18 +14307,15 @@ describe('document', function() {
1430714307
Discriminator.discriminator('type1', subschema1);
1430814308
Discriminator.discriminator('type2', subschema2);
1430914309

14310-
const type1Key = 'type1';
14311-
const type2Key = 'type2';
14312-
1431314310
const doc = await Discriminator.create({
14314-
key: type1Key,
14311+
key: 'type1',
1431514312
field1: 'test value'
1431614313
});
1431714314

1431814315
await Discriminator.updateOne(
1431914316
{ _id: doc._id },
1432014317
{
14321-
key: type2Key,
14318+
key: 'type2',
1432214319
field2: 'test2'
1432314320
},
1432414321
{ overwriteDiscriminatorKey: true }

0 commit comments

Comments
 (0)