UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

30 lines 1.67 kB
"use strict"; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.createTestApp = void 0; /** Create a base app used for testing. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function createTestApp(runner, appOptions = {}, tree) { return __awaiter(this, void 0, void 0, function* () { const workspaceTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', { name: 'workspace', version: '6.0.0', newProjectRoot: 'projects' }, tree).toPromise(); return runner.runExternalSchematicAsync('@schematics/angular', 'application', Object.assign({ name: 'ng-zorro' }, appOptions), workspaceTree).toPromise(); }); } exports.createTestApp = createTestApp; //# sourceMappingURL=test-app.js.map