Skip to content

Commit

Permalink
Update Proof to 0.0.30.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed Jun 23, 2013
1 parent fe876b9 commit bdefd4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
, "scripts" : { "test": "proof platform win32 && proof test t/*/*.t.js || t/test" }
, "devDependencies":
{ "proof": "0.0.28"
{ "proof": "0.0.30"
, "uglify-js": "~1.3"
, "reactor": "0.0.5"
, "connect": "~2"
Expand Down
11 changes: 5 additions & 6 deletions t/service/service.t.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require('proof')(1, function (step, equal) {
service = require('../../service'),
app;
step(function () {
var on = step('on');
var fixtures = path.join(__dirname, 'fixtures'),
javascript = require('../../javascript/common').create(fixtures),
xml = require('../../xml/file').create(fixtures),
Expand All @@ -21,13 +20,13 @@ require('proof')(1, function (step, equal) {
}, function () {
var on = step('on');*/
var req = http.get("http://127.0.0.1:8082/hello");
on(req, 'response');
on(req, 'error');
req.on('response', step.event());
req.on('error', step.error());
}, function (message) {
var on = step('on');
message.setEncoding('utf8');
on(message, 'data', []);
on(message, 'end');
message.on('data', step.event([]));
message.on( 'end', step.event());
message.on( 'error', step.error());
}, function (data) {
equal(data.join(''), '<html><!--stencil:/hello.stencil-->\n<body>\n<p>Hello, World!</p>\n</body>\n</html>', 'connect');
app.close();
Expand Down

0 comments on commit bdefd4e

Please sign in to comment.