mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[HXCS-1166] typos
This commit is contained in:
@@ -28,6 +28,7 @@ import { CoreTestingModule } from '../../testing/core.testing.module';
|
|||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
template: '',
|
||||||
providers: [NotificationService]
|
providers: [NotificationService]
|
||||||
})
|
})
|
||||||
class ProvidesNotificationServiceComponent {
|
class ProvidesNotificationServiceComponent {
|
||||||
@@ -78,7 +79,7 @@ class ProvidesNotificationServiceComponent {
|
|||||||
return this.notificationService.openSnackMessage('with decorative icon', notificationConfig);
|
return this.notificationService.openSnackMessage('with decorative icon', notificationConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
sendMessageWithDecorativeIconWithIcon() {
|
sendMessageWithDecorativeIconAndAction() {
|
||||||
const notificationConfig = new MatSnackBarConfig();
|
const notificationConfig = new MatSnackBarConfig();
|
||||||
notificationConfig.duration = 1000;
|
notificationConfig.duration = 1000;
|
||||||
notificationConfig.data = { decorativeIcon: 'folder' };
|
notificationConfig.data = { decorativeIcon: 'folder' };
|
||||||
@@ -225,8 +226,8 @@ describe('NotificationService', () => {
|
|||||||
expect(document.querySelector('[data-automation-id="adf-snackbar-message-content"] mat-icon')).not.toBeNull();
|
expect(document.querySelector('[data-automation-id="adf-snackbar-message-content"] mat-icon')).not.toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should open a message notification bar with action and decorative icon', (done) => {
|
it('should open a message notification bar with action and a decorative icon', (done) => {
|
||||||
const promise = fixture.componentInstance.sendMessageWithDecorativeIconWithIcon();
|
const promise = fixture.componentInstance.sendMessageWithDecorativeIconAndAction();
|
||||||
promise.afterDismissed().subscribe(() => {
|
promise.afterDismissed().subscribe(() => {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user