Update tests for gitlab
This commit is contained in:
parent
b3479983aa
commit
13400ea4d3
5 changed files with 33 additions and 24 deletions
15
test/fixtures/mongo-file.js
vendored
15
test/fixtures/mongo-file.js
vendored
|
@ -1,5 +1,12 @@
|
|||
db.files.createIndex({
|
||||
"owner": 1,
|
||||
"status": 1,
|
||||
"time_added": -1
|
||||
const MongoClient = require('mongodb').MongoClient;
|
||||
const url = 'mongodb://localhost:27017/hostr';
|
||||
|
||||
MongoClient.connect(url, function connect(err, db) {
|
||||
const collection = db.collection('files');
|
||||
collection.createIndex({
|
||||
'owner': 1,
|
||||
'status': 1,
|
||||
'time_added': -1,
|
||||
});
|
||||
db.close();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue