{"size": 719, "ext": "js", "max_stars_repo_path": "node_modules/mongo-client/node_modules/reducers/test/delay.js", "max_stars_repo_name": "johnhw1994/SocialNBA", "max_stars_repo_stars_event_min_datetime": "2015-01-14T00:51:47.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-20T09:56:33.000Z", "max_issues_repo_path": "test/delay.js", "max_issues_repo_name": "Gozala/reducers", "max_issues_repo_issues_event_min_datetime": "2015-10-24T22:12:54.000Z", "max_issues_repo_issues_event_max_datetime": "2017-05-03T08:05:48.000Z", "max_forks_repo_path": "node_modules/mongo-client/node_modules/reducers/test/delay.js", "max_forks_repo_name": "johnhw1994/SocialNBA", "max_forks_repo_forks_event_min_datetime": "2015-02-19T21:22:46.000Z", "max_forks_repo_forks_event_max_datetime": "2019-05-20T13:21:28.000Z"}
{"max_stars_count": 99, "max_issues_count": 1, "max_forks_count": 5, "avg_line_length": 26.6296296296, "max_line_length": 63, "alphanum_fraction": 0.6022253129}
"use strict";

var test = require("./util/test")
var concat = require("../concat")
var into = require("../into")
var delay = require("../delay")
var capture = require("../capture")
var lazy = require("./util/lazy")

exports["test delay empty"]  = test(function(assert) {
  var async = false
  var actual = concat(delay([]),
                      lazy(function() { return async }))

  assert(actual, [true], "delay makes things async")
  async = true
})

exports["test sequence of numbers"] = test(function(assert) {
  var async = false
  var actual = concat(delay([1, 2, 3, 4]),
                      lazy(function() { return async }))

  assert(actual, [1, 2, 3, 4, true], "dealy made stream async")
  async = true
})
