We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The AAA (Arrange, Act Assert) pattern's purpose is to organize your test in a way that is easier to read and understand. You can read about it here: https://github.com/goldbergyoni/javascript-testing-best-practices#-%EF%B8%8F-12-structure-tests-by-the-aaa-pattern
In this repo, all of the tests are following this pattern. But it's not perfect, because no comments are separating the test into these 3 sections.
This task is about adding these comments.
Example:
// ❌ Before it('calculates sum', function (): void { $firstNumber = 1; $secondNumber = 2; $result = sum($firstNumber, $secondNumber); expect($result)->toBe(3); }); // ✅ After it('calculates sum', function (): void { // Arrange $firstNumber = 1; $secondNumber = 2; // Act $result = sum($firstNumber, $secondNumber); // Assert expect($result)->toBe(3); });
Real example:
laravel-eloquent-spatial/tests/SpatialBuilderTest.php
Lines 375 to 390 in ce02266
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The AAA (Arrange, Act Assert) pattern's purpose is to organize your test in a way that is easier to read and understand. You can read about it here: https://github.com/goldbergyoni/javascript-testing-best-practices#-%EF%B8%8F-12-structure-tests-by-the-aaa-pattern
In this repo, all of the tests are following this pattern. But it's not perfect, because no comments are separating the test into these 3 sections.
This task is about adding these comments.
Example:
Real example:
laravel-eloquent-spatial/tests/SpatialBuilderTest.php
Lines 375 to 390 in ce02266
The text was updated successfully, but these errors were encountered: