-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
failing test for record not unloaded when a payload is returned
It seems common for APIs to return a paylaod when deleting a record. Although there is a test for when `undefined` is returned from `deleteRecord` in the adapter here: https://github.com/emberjs/data/blob/master/tests/integration/records/delete-record-test.js#L87 There are currently no tests showing what happens when you return a payload. It seems like the correct behavior for destroyRecord should be `deleteRecord` + `save` + `unloadRecord`.
- Loading branch information
1 parent
d584076
commit 765fda2
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters