UNPKG

@web-atoms/core

Version:
46 lines (45 loc) 1.71 kB
System.register(["tslib", "../MockApp", "../services/NavigationService", "./AtomTest", "../web/styles/AtomStyleSheet", "../web/styles/AtomTheme"], function (_export, _context) { "use strict"; var __awaiter, MockApp, NavigationService, AtomTest, AtomStyleSheet, AtomTheme, MockWebApp, AtomWebTest; _export({ MockWebApp: void 0, default: void 0 }); return { setters: [function (_tslib) { __awaiter = _tslib.__awaiter; }, function (_MockApp) { MockApp = _MockApp.MockApp; }, function (_servicesNavigationService) { NavigationService = _servicesNavigationService.NavigationService; }, function (_AtomTest) { AtomTest = _AtomTest.AtomTest; }, function (_webStylesAtomStyleSheet) { AtomStyleSheet = _webStylesAtomStyleSheet.AtomStyleSheet; }, function (_webStylesAtomTheme) { AtomTheme = _webStylesAtomTheme.AtomTheme; }], execute: function () { _export("MockWebApp", MockWebApp = class MockWebApp extends MockApp {}); _export("default", AtomWebTest = class AtomWebTest extends AtomTest { get navigationService() { return this.app.get(NavigationService); } constructor() { super(new MockWebApp()); this.app.put(AtomTheme, this.app.resolve(AtomTheme)); this.app.put(AtomStyleSheet, this.app.resolve(AtomTheme)); } dispose() { return __awaiter(this, void 0, void 0, function* () { if (this.navigationService.assert) { this.navigationService.assert(); } yield this.app.waitForPendingCalls(); }); } }); } }; }); //# sourceMappingURL=AtomWebTest.js.map