File: chat-websocket/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/event_emitter.js

Recommend this page to a friend!
  Classes of Igor Escobar  >  Terminal Crossword  >  chat-websocket/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/event_emitter.js  >  Download  
File: chat-websocket/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/event_emitter.js
Role: Example script
Content type: text/plain
Description: Example script
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 5 months ago
Size: 293 bytes
 

Contents

Class file image Download
require('../test/common');
var gently = new (require('gently'))
  , stream = new (require('fs').WriteStream)('my_file.txt');

gently.expect(stream, 'emit', function(event) {
  assert.equal(event, 'open');
});

gently.expect(stream, 'emit', function(event) {
  assert.equal(event, 'drain');
});