"use strict";

var _vitest = require("vitest");
var _index = _interopRequireDefault(require("../../lib/stream/index"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
(0, _vitest.describe)('Array Stream Tests', function () {
  (0, _vitest.it)('We can get a response from array', function () {
    var document = ['More', 'XYZ'];
    var line = _index["default"].ofArray(document);
    var response = line.get(0);
    (0, _vitest.expect)(response.value).toBe('More');
  });
  (0, _vitest.it)('We have reached out of stream', function () {
    var document = ['More', 'XYZ'];
    var line = _index["default"].ofArray(document);
    var out = line.endOfStream(3);
    (0, _vitest.expect)(out).toBe(true);
    out = line.endOfStream(1);
    (0, _vitest.expect)(out).toBe(false);
  });
});
//# sourceMappingURL=array-stream-test.spec.js.map