-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
Convert unload test to json api format for store.push
.. #3223
#3251
Conversation
@@ -18,7 +18,7 @@ var shouldNotContain = function(array, item) { | |||
|
|||
module("integration/filter - DS.Model updating", { | |||
setup: function() { | |||
array = [{ id: 1, name: "Scumbag Dale", bestFriend: 2 }, { id: 2, name: "Scumbag Katz" }, { id: 3, name: "Scumbag Bryn" }]; | |||
array = [{ "id": "1", "type": "person", "attributes": { "name": "Scumbag Dale", "bestFriend": "2" } }, { "id": "2", "type": "person", "attributes": { "name": "Scumbag Katz" } }, { "id": 3, "type": "person", "attributes": { "name": "Scumbag Bryn" } }]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think bestFriend should be a relationship here
Would you mind squashing the commits and remove "WIP"? |
a282502
to
816d0b0
Compare
store.push
.. #3223store.push
.. #3223
"attributes": { | ||
"name": "Scumbag Dale" | ||
}, | ||
relationships: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you encapsulate all of the keys in quotes, for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps the quoted keys should be unquoted instead @wecc?
Can you prefix the commit with [CLEANUP beta]? |
74bef67
to
0eadbbe
Compare
Convert unload test to json api format for `store.push`.. #3223
Thank you so much! |
👍 Awesome work @andrejunges! |
This PR will break some tests, but now the the calls to store.push are
using jsonApiFormat