Skip to content

Commit

Permalink
tests refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
yurijmikhalevich committed Dec 11, 2016
1 parent 704dcce commit 3de291f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 35 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -25,7 +25,7 @@
"main": "./lib/winston-mongodb",
"scripts": {
"test": "vows test/*-test.js --spec",
"test-rs": "vows test/*-test-rs.js --spec"
"test-rs": "WINSTON_MONGODB_URL='mongodb://localhost:27017,localhost:27018/winston?replicaSet=rs0' vows test/*-test.js --spec"
},
"typings": "./lib/winston-mongodb.d.ts"
}
33 changes: 0 additions & 33 deletions test/winston-mongodb-test-rs.js

This file was deleted.

3 changes: 2 additions & 1 deletion test/winston-mongodb-test.js
Expand Up @@ -10,7 +10,8 @@ const vows = require('vows');
const mongodb = require('mongodb');
const transport = require('winston/test/transports/transport');
const MongoDB = require('../lib/winston-mongodb').MongoDB;
const dbUrl = 'mongodb://localhost/winston';
const dbUrl = process.env.USER_WINSTON_MONGODB_URL
||process.env.WINSTON_MONGODB_URL||'mongodb://localhost/winston';

vows.describe('winston-mongodb').addBatch({
'{db: url}': transport(MongoDB, {db: dbUrl}),
Expand Down

0 comments on commit 3de291f

Please sign in to comment.