"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = __importDefault(require("assert"));
const Pin_1 = require("../Pin");
const system_1 = require("./util/system");
const pin = new Pin_1.Pin({}, system_1.system);
assert_1.default.equal(pin.take(), undefined);
pin.push('foo');
assert_1.default.equal(pin.take(), 'foo');
assert_1.default.equal(pin.take(), undefined);
pin.push('bar');
assert_1.default.equal(pin.peak(), 'bar');
pin.push('zaz');
assert_1.default.equal(pin.peak(), 'zaz');
assert_1.default.equal(pin.take(), 'zaz');
//# sourceMappingURL=Pin.js.map