test-app.js 1.3 KB

123456789101112131415161718192021222324
  1. "use strict";
  2. /**
  3. * Use of this source code is governed by an MIT-style license that can be
  4. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  5. */
  6. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  7. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  8. return new (P || (P = Promise))(function (resolve, reject) {
  9. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  10. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  11. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  12. step((generator = generator.apply(thisArg, _arguments || [])).next());
  13. });
  14. };
  15. Object.defineProperty(exports, "__esModule", { value: true });
  16. exports.createTestApp = createTestApp;
  17. const test_project_1 = require("./test-project");
  18. /** Create a base app used for testing. */
  19. function createTestApp(runner_1) {
  20. return __awaiter(this, arguments, void 0, function* (runner, appOptions = {}, tree) {
  21. return (0, test_project_1.createTestProject)(runner, 'application', appOptions, tree);
  22. });
  23. }
  24. //# sourceMappingURL=test-app.js.map