Skip to content

Test coverage for the @ syntax of PATCH when applied to area ids#5298

Open
boutell wants to merge 2 commits intomainfrom
test-@-syntax-for-area-patch
Open

Test coverage for the @ syntax of PATCH when applied to area ids#5298
boutell wants to merge 2 commits intomainfrom
test-@-syntax-for-area-patch

Conversation

@boutell
Copy link
Member

@boutell boutell commented Jan 30, 2026

Turns out it works fine, but the test is healthy to have. Created with claude code.

@boutell boutell requested a review from myovchev January 30, 2026 19:15
Copy link
Contributor

@myovchev myovchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a little refactoring for consistency with the "non-dependent" test standards (raised some time ago). There are also 2 eslint problems to be fixed.

await apos.user.insert(apos.task.getReq(), user);
});

it('should be able to login as admin', async function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be part of the before hook. The rest of the tests shouldn't depend on any other test. before in this case is fine because there is no reset between tests (otherwise beforeEach would be more appropriate)

});
});

it('should be able to upload an image and create an image piece', async function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. This is just state used by other tests, in this case before is the right place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants