define(["require", "exports", "./ScreenSizeDetection"], function (require, exports, ScreenSizeDetection_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    describe('ScreenSizeDetection', function () {
        var $window;
        beforeEach(inject(function (_$window_) {
            $window = _$window_;
        }));
        it('Should return an BehaviorSubject', function () {
            var subject = ScreenSizeDetection_1.default.get();
            expect(subject.constructor.name).toBe('BehaviorSubject');
        });
        it('The BehaviorSubject should return the correct string for the screensize', function (done) {
            var currentExpectation;
            ScreenSizeDetection_1.default.get().subscribe(function (screenSize) {
                if (currentExpectation) {
                    expect(screenSize).toBe(currentExpectation);
                    if (screenSize === 'xl') {
                        done();
                    }
                }
            });
            var map = {
                'xs': 500,
                'sm': 600,
                'md': 800,
                'lg': 1000,
                'xl': 1400
            };
            for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) {
                var step = _a[_i];
                currentExpectation = step;
                ScreenSizeDetection_1.default.mocksize = map[step];
                ScreenSizeDetection_1.default.resizeHandler();
            }
        });
    });
});
//# sourceMappingURL=ScreenSizeDetection.spec.js.map