You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Forms: refactor common validators used in unit tests and extract them to util file #37831
I was thinking if we can extract common validators code into a new packages/forms/test/util.ts file (we can store more functions there later). Some validators that are used across many tests (may be you can find more):
function asyncValidator
function asyncValidatorReturningObservable
may be simpleAsyncValidator added in this test can use some common code from asyncValidator
I also see a value of moving the currentStateOf function (added in this PR) into the util.ts file, so we can reuse it for other validators-related tests in other files
Activity
benbraou commentedon Jun 29, 2020
@AndrewKushnir I will be working on this ticket as agreed in #22575 (comment)
Thank you
refactor(forms): refactor common validators used in unit tests
refactor(forms): refactor common validators used in unit tests (angul…
refactor(forms): refactor common validators used in unit tests (angul…
angular-automatic-lock-bot commentedon Aug 23, 2020
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
refactor(forms): refactor common validators used in unit tests (angul…