text: "use strict";
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
      return c > 3 && r && Object.defineProperty(target, key, r), r;
  };
  var __metadata = (this && this.__metadata) || function (k, v) {
      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  };
  var core_1 = require('@angular/core');
  var src_1 = require('../../../../src');
  var modal_component_1 = require('../../../../src/components/modal/modal-component');
  function run() {
      describe('Modal', function () {
          describe('create', function () {
              it('should have the correct properties on modal view controller instance', function () {
                  var modalCtrl = new src_1.ModalController(null);
                  var modalViewController = modalCtrl.create(ComponentToPresent);
                  expect(modalViewController.componentType).toEqual(modal_component_1.ModalCmp);
                  expect(modalViewController.isOverlay).toEqual(true);
                  expect(modalViewController instanceof src_1.ViewController).toEqual(true);
              });
          });
      });
  }
  exports.run = run;
  var ComponentToPresent = (function () {
      function ComponentToPresent() {
      }
      ComponentToPresent = __decorate([
          core_1.Component({
              template: "<div class=\"myComponent\"></div>"
          }), 
          __metadata('design:paramtypes', [])
      ], ComponentToPresent);
      return ComponentToPresent;
  }());