Skip to content

Commit

Permalink
Tidy loop.t.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed Mar 5, 2017
1 parent 87626ac commit aa36220
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/loop.t.js
Expand Up @@ -3,7 +3,7 @@ require('proof/redux')(8, prove)
function prove (assert) {
var cadence = require('..')

var f = cadence(function (async) {
cadence(function (async) {
var i = 0
async(function () {
if (++i == 2) return [ async.break, i ]
Expand All @@ -13,15 +13,15 @@ function prove (assert) {
assert(result, 2, 'async break and continue')
})

var f = cadence(function (async) {
cadence(function (async) {
var i = 0, loop = async(function () {
if (++i == 2) return [ loop.break, i ]
})()
})(function (error, result) {
assert(result, 2, 'returned')
})

var f = cadence(function (async) {
cadence(function (async) {
var i = 0
async(function () {
async(function () {
Expand Down

0 comments on commit aa36220

Please sign in to comment.