Commit 2c0d28d5 authored by Vladislav Bogac's avatar Vladislav Bogac

Revert "Alles funktioniert"

This reverts commit 94acd8c7
parent c5fe072c
......@@ -7,6 +7,7 @@ import {JWT_OPTIONS, JwtHelperService, JwtModule} from '@auth0/angular-jwt';
import {jwtOptionsFactory} from '../../../../../lib/jwt.factory';
import {PLATFORM_ID} from '@angular/core';
import {
MissingTranslationHandler,
TranslateCompiler,
TranslateFakeCompiler,
TranslateFakeLoader,
......@@ -17,6 +18,7 @@ import {
} from '@ngx-translate/core';
import {TranslateServiceMock} from '../../../../../../_mocks/_services/TranslateServiceMock';
import {TranslatePipeMock} from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import {MissingTranslationError} from '@angular/localize/src/utils';
import {I18nTestingModule} from '../../../../../shared/testing/i18n-testing/i18n-testing.module';
import {SharedModule} from '../../../../../shared/shared.module';
import {RouterTestingModule} from '@angular/router/testing';
......@@ -34,7 +36,7 @@ import {SharedService} from '../../../../../service/shared/shared.service';
import {AttendeeService} from '../../../../../service/attendee/attendee.service';
import {AttendeeMockService} from '../../../../../service/attendee/attendee.mock.service';
describe('When BonusToken Icon is going to be clicked', () => {
describe('BonusTokenComponent', () => {
let component: BonusTokenComponent;
let fixture: ComponentFixture<BonusTokenComponent>;
......@@ -92,12 +94,7 @@ describe('When BonusToken Icon is going to be clicked', () => {
fixture.detectChanges();
});
it('should be created', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
it('should change value of the Copy-to-clipboard-Button after copying to clipboard', () => {
component.copy();
expect(component.clipboardText).toBeFalsy();
});
});
......@@ -11,6 +11,7 @@ import {AttendeeService} from '../../../../../service/attendee/attendee.service'
export class BonusTokenComponent {
public bonusToken = '## you\'ve been to fast ##';
public clipboardText: boolean;
public mailText = '';
constructor(private activeModal: NgbActiveModal, bonusTokenService: BonusTokenService, attendeeService: AttendeeService) {
......@@ -42,4 +43,9 @@ export class BonusTokenComponent {
public abort(): void {
this.activeModal.dismiss();
}
public mailTo(): void {
this.mailText = 'mailto: ?subject=Meine%20Tokennummer&amp;body=Hallo,%0D%0A%0D%0Ameine%20Tokennummer%20ist%20';
window.location.href = this.mailText;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment