<commit_before>/*
 * winston-redis-test.js: Tests for instances of the Redis transport
 *
 * (C) 2011 <NAME>
 * MIT LICENSE
 *
 */

var path = require('path'),
    vows = require('vows'),
    assert = require('assert'),
    helpers = require('winston/test/helpers'),
    transport = require('winston/test/transports/transport'),
    Redis = require('../lib/winston-redis').Redis;

vows.describe('winston/transports/redis').addBatch({
  'An instance of the Redis Transport': transport(Redis, {
    host: 'localhost',
    port: 6379
  }),
  'Another instance of the Redis Transport': transport(Redis, {
    redis: {
      host: 'localhost',
      port: 6379
    }
  })
}).export(module);<commit_msg>fix specs<commit_after>/*
 * winston-redis-test.js: Tests for instances of the Redis transport
 *
 * (C) 2011 <NAME>
 * MIT LICENSE
 *
 */

var path = require('path'),
    vows = require('vows'),
    assert = require('assert'),
    helpers = require('winston/test/helpers'),
    transport = require('winston/test/transports/transport'),
    Redis = require('../lib/winston-redis').Redis;

vows.describe('winston/transports/redis').addBatch({
  'An instance of the Redis Transport': transport(Redis, {
    host: 'localhost',
    port: 6379,
    channel: 'winston-redis-channel-test',
    container: 'winston-redis-test'
  })
}).export(module);
{'fraction_non_alphanumeric': 0.16579536967886482, 'fraction_numerical': 0.014936519790888723, 'mean_word_length': 3.6689895470383274, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '894376', 'n_tokens_mistral': 468, 'n_tokens_neox': 438, 'n_words': 96}