Skip to content

Commit 8fa8012

Browse files
committed
test: test cleanup re: #8459
1 parent 4a55040 commit 8fa8012

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/schema.alias.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var start = require('./common'),
99
Schema = mongoose.Schema;
1010

1111
describe('schema alias option', function() {
12-
it('works with all basic schema types', function() {
12+
it('works with all basic schema types', function(done) {
1313
var db = start();
1414

1515
var schema = new Schema({
@@ -45,10 +45,11 @@ describe('schema alias option', function() {
4545
assert.equal(s.mixed, s.MixedAlias);
4646
assert.equal(s.objectId, s.ObjectIdAlias);
4747
assert.equal(s.array, s.ArrayAlias);
48+
done();
4849
});
4950
});
5051

51-
it('works with nested schema types', function() {
52+
it('works with nested schema types', function(done) {
5253
var db = start();
5354

5455
var schema = new Schema({
@@ -92,6 +93,8 @@ describe('schema alias option', function() {
9293
assert.equal(s.nested.mixed, s.MixedAlias);
9394
assert.equal(s.nested.objectId, s.ObjectIdAlias);
9495
assert.equal(s.nested.array, s.ArrayAlias);
96+
97+
done();
9598
});
9699
});
97100

0 commit comments

Comments
 (0)