Skip to content

Commit

Permalink
test: test cleanup re: #8459
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 8, 2020
1 parent 4a55040 commit 8fa8012
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/schema.alias.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var start = require('./common'),
Schema = mongoose.Schema;

describe('schema alias option', function() {
it('works with all basic schema types', function() {
it('works with all basic schema types', function(done) {
var db = start();

var schema = new Schema({
Expand Down Expand Up @@ -45,10 +45,11 @@ describe('schema alias option', function() {
assert.equal(s.mixed, s.MixedAlias);
assert.equal(s.objectId, s.ObjectIdAlias);
assert.equal(s.array, s.ArrayAlias);
done();
});
});

it('works with nested schema types', function() {
it('works with nested schema types', function(done) {
var db = start();

var schema = new Schema({
Expand Down Expand Up @@ -92,6 +93,8 @@ describe('schema alias option', function() {
assert.equal(s.nested.mixed, s.MixedAlias);
assert.equal(s.nested.objectId, s.ObjectIdAlias);
assert.equal(s.nested.array, s.ArrayAlias);

done();
});
});

Expand Down

0 comments on commit 8fa8012

Please sign in to comment.