mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
9 lines
132 B
JavaScript
9 lines
132 B
JavaScript
|
|
t = db.error5
|
|
t.drop();
|
|
|
|
assert.throws( function(){ t.save( 4 ); } , "A" );
|
|
t.save( { a : 1 } )
|
|
assert.eq( 1 , t.count() , "B" );
|
|
|