Skip to content

Commit

Permalink
test: add test covering SchemaOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 1, 2020
1 parent 13140c0 commit e665a95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/typescript/createBasicSchemaDefinition.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Schema, model, Document } from 'mongoose';

const schema: Schema = new Schema({ name: { type: 'String' } });
const schema: Schema = new Schema({ name: { type: 'String' } },
{ collection: 'mytest', versionKey: '_version' });

interface ITest extends Document {
name?: string;
Expand Down

0 comments on commit e665a95

Please sign in to comment.