Skip to content

Commit

Permalink
test: rename main test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
eoin-obrien committed May 9, 2018
1 parent 422948d commit 6e52f8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __tests__/version.spec.ts → __tests__/plugin.spec.ts
Expand Up @@ -2,6 +2,7 @@ import * as mongoose from 'mongoose';
import { isNullOrUndefined } from 'util';
import { updateIfCurrentPlugin } from '../src';


function getVersionModel(name: string, versionKey?: string | boolean): mongoose.Model<any> {
// Create a simple schema
const schema = new mongoose.Schema({
Expand All @@ -20,7 +21,8 @@ function getVersionModel(name: string, versionKey?: string | boolean): mongoose.
return mongoose.model(name, schema);
}

describe('Using document versions:', () => {

describe('Document#save()', () => {
it('should manage concurrency when saving documents', async () => {
const Model = getVersionModel('PlainVersionModel');

Expand Down

0 comments on commit 6e52f8a

Please sign in to comment.