System.register(["test/lib/common", "app/core/utils/flatten"], function (exports_1, context_1) {
    "use strict";
    var __moduleName = context_1 && context_1.id;
    var common_1, flatten_1;
    return {
        setters: [
            function (common_1_1) {
                common_1 = common_1_1;
            },
            function (flatten_1_1) {
                flatten_1 = flatten_1_1;
            }
        ],
        execute: function () {
            common_1.describe("flatten", function () {
                common_1.it('should return flatten object', function () {
                    var flattened = flatten_1.default({
                        level1: 'level1-value',
                        deeper: {
                            level2: 'level2-value',
                            deeper: {
                                level3: 'level3-value'
                            }
                        }
                    }, null);
                    common_1.expect(flattened['level1']).to.be('level1-value');
                    common_1.expect(flattened['deeper.level2']).to.be('level2-value');
                    common_1.expect(flattened['deeper.deeper.level3']).to.be('level3-value');
                });
            });
        }
    };
});
//# sourceMappingURL=flatten_specs.js.map