We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a55040 commit 8fa8012Copy full SHA for 8fa8012
test/schema.alias.test.js
@@ -9,7 +9,7 @@ var start = require('./common'),
9
Schema = mongoose.Schema;
10
11
describe('schema alias option', function() {
12
- it('works with all basic schema types', function() {
+ it('works with all basic schema types', function(done) {
13
var db = start();
14
15
var schema = new Schema({
@@ -45,10 +45,11 @@ describe('schema alias option', function() {
45
assert.equal(s.mixed, s.MixedAlias);
46
assert.equal(s.objectId, s.ObjectIdAlias);
47
assert.equal(s.array, s.ArrayAlias);
48
+ done();
49
});
50
51
- it('works with nested schema types', function() {
52
+ it('works with nested schema types', function(done) {
53
54
55
@@ -92,6 +93,8 @@ describe('schema alias option', function() {
92
93
assert.equal(s.nested.mixed, s.MixedAlias);
94
assert.equal(s.nested.objectId, s.ObjectIdAlias);
95
assert.equal(s.nested.array, s.ArrayAlias);
96
+
97
98
99
100
0 commit comments