-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e04fea1
commit 15c1024
Showing
4 changed files
with
48 additions
and
49 deletions.
There are no files selected for viewing
32 changes: 16 additions & 16 deletions
32
frontend/src/app/components/application-top-bar/application-top-bar.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
frontend/src/app/team-management/new-user/new-user.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import {UniqueEmailValidator} from './unique-mail.validator'; | ||
import {users} from '../../shared/testData'; | ||
import {TestBed} from '@angular/core/testing'; | ||
import {of} from 'rxjs'; | ||
import {AbstractControl} from '@angular/forms'; | ||
import { UniqueEmailValidator } from './unique-mail.validator'; | ||
import { users } from '../../shared/testData'; | ||
import { TestBed } from '@angular/core/testing'; | ||
import { of } from 'rxjs'; | ||
import { AbstractControl } from '@angular/forms'; | ||
|
||
describe('UniqueMailDirective', () => { | ||
const userServiceMock = { | ||
|
@@ -28,7 +28,7 @@ describe('UniqueMailDirective', () => { | |
expect(directive.validate(control)).toStrictEqual({ notUniqueMail: { value: users[0].email } }); | ||
|
||
const notExistingMail = '[email protected]'; | ||
control = { value: notExistingMail} as AbstractControl; | ||
control = { value: notExistingMail } as AbstractControl; | ||
expect(directive.validate(control)).toStrictEqual(null); | ||
|
||
directive.setAddedMails([notExistingMail]); | ||
|