We now allow * and ? in database names on Linux, so we can't use them to test our testing.
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();
|
|
|