[AAE-10594] Run unit tests in headless mode (#8141)

* AAE-10594 - changed karma configs to run unit tests in headless mode

* AAE-10594 - removed commets

* [AAE-10594] fixed failing test
This commit is contained in:
Nikita Maliarchuk
2023-02-17 12:08:16 +01:00
committed by GitHub
parent 2062d4744c
commit 058cd9e01c
9 changed files with 10 additions and 8 deletions

View File

@@ -69,7 +69,9 @@ describe('ClipboardService', () => {
});
it('should notify copy to clipboard with message', () => {
spyOn(navigator.clipboard, 'writeText');
spyOn(notificationService, 'openSnackMessage');
inputElement.value = 'some text';
clipboardService.copyToClipboard(inputElement, 'success');