mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
18 lines
370 B
JavaScript
18 lines
370 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() );
|