Sha256: 857f7afe3e04750005ad5ca2ed5e9e4845e74036f077e95fb8503db95bf4726f

Contents?: true

Size: 806 Bytes

Versions: 17

Compression:

Stored size: 806 Bytes

Contents

"use strict";
var assert = require('assert')
, vows = require('vows')
, layouts = require('../lib/layouts')
, sandbox = require('sandboxed-module');

vows.describe('../lib/appenders/console').addBatch({
  'appender': {
    topic: function() {
      var messages = []
      , fakeConsole = {
        log: function(msg) { messages.push(msg); }
      }
      , appenderModule = sandbox.require(
        '../lib/appenders/console',
        {
          globals: {
            'console': fakeConsole
          }
        }
      )
      , appender = appenderModule.appender(layouts.messagePassThroughLayout);

      appender({ data: ["blah"] });
      return messages;
    },

    'should output to console': function(messages) {
      assert.equal(messages[0], 'blah');
    }
  }
          
}).exportTo(module);

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/log4js/test/consoleAppender-test.js