Skip to content

Commit

Permalink
add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
raimohanska committed Jul 31, 2017
1 parent 99ccf98 commit 8f633d8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/specs/concat.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ describe "Bacon.concatAll", ->
sequentially(1, [3,4])
)
[1, 2, 3, 4])
describe "Supports single array as well as multiple arguments", ->
expectStreamEvents(
->
Bacon.concatAll([
Bacon.constant(1),
once(2),
sequentially(1, [3,4])
])
[1, 2, 3, 4])
describe "works with zero inputs", ->
expectStreamEvents((-> Bacon.concatAll([])), [])
describe "EventStream.concat", ->
describe "provides values from streams in given order and ends when both are exhausted", ->
expectStreamEvents(
Expand Down

0 comments on commit 8f633d8

Please sign in to comment.