 			setTimeout ->
 				cb null, val + 1
 
-		new Promise (r) ->
+		new Yaku (r) ->
 			fn 0, (err, val) ->
 				r val

	test 'flow array', 'bc', ->
		(utils.flow [
			'a'
			Promise.resolve 'b'
			(v) -> v + 'c'
		])(0)

	test 'flow error', $val, ->
		(utils.flow [
			'a'
			Promise.resolve 'b'
			(v) -> throw $val
		])(0).catch (err) -> err


				r reason

			Yaku.resolve().then ->
				Yaku.reject $val

.then ->
	test 'no unhandled rejection', $val, ->
