Permalink
Browse files

failing immutability test

  • Loading branch information...
1 parent 59a13d5 commit f281841303b7e9997bce80e629e81613827deb7e @substack committed Aug 29, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 test/filed.js
View
8 test/filed.js
@@ -9,7 +9,7 @@ var fs = require('fs');
var fileContents = fs.readFileSync(__dirname + '/data.txt');
test('filed response', function (t) {
- t.plan(4);
+ t.plan(5);
var port = Math.floor(Math.random() * 5e4 + 1e4);
var server = http.createServer(function (req, res) {
@@ -49,9 +49,11 @@ test('filed response', function (t) {
});
function capStream () {
- var s = responseStream(es.mapSync(function (s) {
+ var caps = es.mapSync(function (s) {
return String(s).toUpperCase()
- }));
+ });
+ var s = responseStream(caps);
+ t.notEqual(caps, s);
s.on('setHeader', function (args, pass) {
if (args[0] === 'content-type') {

0 comments on commit f281841

Please sign in to comment.