summaryrefslogtreecommitdiff
path: root/jstests/core/db.js
blob: 66a0bd73ede18cb43c87eade798bf694837e49ed (plain)
1
2
3
4
5
6
7
8
9
10
11
function testInvalidDBNameThrowsExceptionWithConstructor() {
    assert.throws( function() { return new DB( null, "/\\" ); } );
}

function testInvalidDBNameThrowsExceptionWithSibling() {
    assert.throws( function() { return db.getSiblingDB( "/\\" ); } );
}

testInvalidDBNameThrowsExceptionWithConstructor();
testInvalidDBNameThrowsExceptionWithSibling();