htmx
htmx copied to clipboard
Fix ajax api body test
Description
ajax api test for body was causing problems possibly as it was swapping and then reverting body. Change this test so it just checks if the body is the target but uses a swap of none so it won't possibly cause issues to the body state.
Corresponding issue:
Testing
Ran tests locally to make sure they still pass.
Checklist
- [x] I have read the contribution guidelines
- [x] I have targeted this PR against the correct branch (
masterfor website changes,devfor source changes) - [ ] This is either a bugfix, a documentation update, or a new feature that has been explicitly approved via an issue
- [x] I ran the test suite locally (
npm run test) and verified that it succeeded