mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-24 16:46:00 +01:00
15 lines
321 B
JavaScript
15 lines
321 B
JavaScript
// test listIndexes compatability command and system.indexes
|
|
|
|
t = db.list_indexes2;
|
|
t.drop();
|
|
|
|
t.insert({x: 1});
|
|
|
|
assert.eq(t._getIndexesSystemIndexes(), t._getIndexesCommand());
|
|
|
|
t.ensureIndex({x: 1});
|
|
|
|
assert.eq(t._getIndexesSystemIndexes(), t._getIndexesCommand());
|
|
|
|
assert.eq(t.getIndexes(), t._getIndexesCommand());
|