Skip to content

Commit

Permalink
feat(stark-all): refine exports for the services
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #1112
  • Loading branch information
SuperITMan committed Feb 4, 2019
1 parent b74eabb commit 1bf950e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/stark-ui/src/modules/app-sidebar/services.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./services/app-sidebar.service";
export * from "./services/app-sidebar.service.intf";
export { STARK_APP_SIDEBAR_SERVICE, StarkAppSidebarService } from "./services/app-sidebar.service.intf";
export * from "./services/app-sidebar-open-event.intf";
2 changes: 1 addition & 1 deletion packages/stark-ui/src/modules/message-pane/services.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./services/message-pane.service.intf";
export { STARK_MESSAGE_PANE_SERVICE, StarkMessagePaneService } from "./services/message-pane.service.intf";
export * from "./services/message-pane.service";
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./services/progress-indicator.service.intf";
export { STARK_PROGRESS_INDICATOR_SERVICE, StarkProgressIndicatorService } from "./services/progress-indicator.service.intf";
export * from "./services/progress-indicator.service";
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./services/toast-notification.service.intf";
export { STARK_TOAST_NOTIFICATION_SERVICE, StarkToastNotificationService } from "./services/toast-notification.service.intf";
export * from "./services/toast-notification.service";
export * from "./services/toast-notification-result.intf";
export * from "./services/toast-notification-option.intf";
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { StarkToastMessage, StarkToastNotificationResult, StarkToastNotification
* You can use it in your unit tests by providing it while configuring the testing module in the TestBed. For example:
* ```typescript
* import { STARK_TOAST_NOTIFICATION_SERVICE } from "@nationalbankbelgium/stark-ui";
* import { MockToastNotificationService } from "@nationalbankbelgium/stark-ui/testing";
* import { MockStarkToastNotificationService } from "@nationalbankbelgium/stark-ui/testing";
*
* describe("Some test", () => {
*
Expand All @@ -20,17 +20,17 @@ import { StarkToastMessage, StarkToastNotificationResult, StarkToastNotification
* declarations: [...],
* providers: [
* // provide is as a value
* { provide: STARK_TOAST_NOTIFICATION_SERVICE, useValue: new MockToastNotificationService() },
* { provide: STARK_TOAST_NOTIFICATION_SERVICE, useValue: new MockStarkToastNotificationService() },
* // or as a class
* { provide: STARK_TOAST_NOTIFICATION_SERVICE, useClass: MockToastNotificationService }
* { provide: STARK_TOAST_NOTIFICATION_SERVICE, useClass: MockStarkToastNotificationService }
* ]
* }).compileComponents();
* }));
*
* }
* ```
*/
export class MockToastNotificationService implements StarkToastNotificationService {
export class MockStarkToastNotificationService implements StarkToastNotificationService {
/**
* Returns an observable that will emit one of the possible StarkToastNotificationResult after the toast is closed
* @param message - Message to be shown in the toast.
Expand Down

0 comments on commit 1bf950e

Please sign in to comment.