Skip to content

Commit

Permalink
add a fullstop, remove fdescribe
Browse files Browse the repository at this point in the history
  • Loading branch information
kapppa-joe committed Dec 16, 2024
1 parent 5de7a2d commit fa2257b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { TestBed } from '@angular/core/testing';

import { FindUsernameService } from './find-username.service';

fdescribe('FindUsernameService', () => {
describe('FindUsernameService', () => {
let service: FindUsernameService;
let http: HttpTestingController;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="govuk-grid-column-two-thirds-from-desktop">
<div class="asc-security-question__container">
<h3 class="govuk-heading-m">Your security question</h3>
<p>You chose this question when you created your account</p>
<p>You chose this question when you created your account.</p>
<h4 class="govuk-heading-s">Question</h4>
<div id="securityQuestion" class="asc-security-question" #securityQuestionEl tabindex="-1">
{{ securityQuestion }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { FindAccountComponent } from './find-account/find-account.component';
import { FindUsernameComponent } from './find-username/find-username.component';
import { ForgotYourUsernameComponent } from './forgot-your-username.component';

fdescribe('ForgotYourUsernameComponent', () => {
describe('ForgotYourUsernameComponent', () => {
const setup = async () => {
const setupTools = await render(ForgotYourUsernameComponent, {
imports: [HttpClientTestingModule, FormsModule, ReactiveFormsModule, RouterTestingModule, SharedModule],
Expand Down Expand Up @@ -167,7 +167,7 @@ fdescribe('ForgotYourUsernameComponent', () => {
});
});

fdescribe('Find username', () => {
describe('Find username', () => {
const setupAndProceedToFindUsername = async () => {
const setuptools = await setup();

Expand All @@ -189,7 +189,7 @@ fdescribe('ForgotYourUsernameComponent', () => {
const { getByText } = await setupAndProceedToFindUsername();

expect(getByText('Your security question')).toBeTruthy();
expect(getByText('You chose this question when you created your account')).toBeTruthy();
expect(getByText('You chose this question when you created your account.')).toBeTruthy();
expect(getByText('Question')).toBeTruthy();
expect(getByText(mockTestUser.securityQuestion)).toBeTruthy();
});
Expand Down Expand Up @@ -274,7 +274,7 @@ fdescribe('ForgotYourUsernameComponent', () => {
expect(findUsernameService.usernameFound).toEqual(null);
});

fit('should show a different error message when only 1 chance remain', async () => {
it('should show a different error message when only 1 chance remain', async () => {
const { fixture, getByRole, getByText, findUsernameService } = await setupAndProceedToFindUsername();
spyOn(findUsernameService, 'findUsername').and.returnValue(of({ answerCorrect: false, remainingAttempts: 1 }));

Expand Down

0 comments on commit fa2257b

Please sign in to comment.