Skip to content

Commit

Permalink
Rename assert to okay.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed Nov 26, 2018
1 parent 572081a commit 16b23b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/downgrader.t.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require('proof')(3, require('cadence')(prove))

function prove (async, assert) {
function prove (async, okay) {
var http = require('http')
var delta = require('delta')

Expand All @@ -20,8 +20,8 @@ function prove (async, assert) {

var server = http.createServer(function (request, response) { throw new Error })
server.on('upgrade', function (request, socket, head) {
assert(head.length, 0, 'head is zero')
assert(request.headers, {
okay(head.length, 0, 'head is zero')
okay(request.headers, {
connection: 'Upgrade',
upgrade: 'Downgrader',
host: '127.0.0.1:8088',
Expand All @@ -48,7 +48,7 @@ function prove (async, assert) {
async(function () {
delta(async()).ee(socket).on('data')
}, function (data) {
assert(data.toString(), 'hello', 'echo')
okay(data.toString(), 'hello', 'echo')
socket.end(async())
socket.destroy()
})
Expand Down

0 comments on commit 16b23b9

Please sign in to comment.