Moved test jstest/[a-i].js -> jstests/core/ and made changes to comply with write command api
12 lines
360 B
JavaScript
12 lines
360 B
JavaScript
function testInvalidDBNameThrowsExceptionWithConstructor() {
|
|
assert.throws( function() { return new DB( null, "/\\" ); } );
|
|
}
|
|
|
|
function testInvalidDBNameThrowsExceptionWithSibling() {
|
|
assert.throws( function() { return db.getSiblingDB( "/\\" ); } );
|
|
}
|
|
|
|
testInvalidDBNameThrowsExceptionWithConstructor();
|
|
testInvalidDBNameThrowsExceptionWithSibling();
|
|
|