mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: add Mongoose createConnection tests
This commit is contained in:
@@ -77,4 +77,7 @@ app.post('/documents/find', (req, res) => {
|
||||
.exec()
|
||||
;
|
||||
|
||||
Mongoose.createConnection(X).count(query); // OK (invalid program)
|
||||
Mongoose.createConnection(X).model(Y).count(query); // NOT OK
|
||||
Mongoose.createConnection(X).models[Y].count(query); // NOT OK
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user