-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement initial default adapter for upcoming adapter pattern #51
Changes from 1 commit
c9c2a13
396fded
594737f
eb7f531
4dda476
daf3c01
f3c7017
ab39813
5807638
3ee071f
4fe6296
31f9d98
2656bf3
5e50c93
a0ea814
ab98fe0
201b48f
a1be14f
2785ac7
b0d6aba
424dd71
1c56c06
e13303e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,7 +195,7 @@ describe('model action creators', () => { | |
})); | ||
|
||
expect(stubAdapter.saveModel).toHaveBeenCalledWith('posts', '76', attributes, { | ||
saveOptions | ||
saveOptions, | ||
}); | ||
}); | ||
}); | ||
|
@@ -205,7 +205,7 @@ describe('model action creators', () => { | |
this.destroy = modelActions.destroy; | ||
}); | ||
|
||
it('calls destroy on the adapter', function () { | ||
it('calls destroy on the adapter', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is going on here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To reply to your past few comments re: "what is going on here", I'd suggest looking at the diff side by side as it will be easier to see that the existing specs were wrapped in an additional describe block. This causes the diff to appear a bit wonky, which you've likely seen before. I hope that clears things up! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are nested There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I see what you mean. Fixed it! |
||
it('calls fetch on the adapter', function () { | ||
const deferred = $.Deferred(); // eslint-disable-line new-cap | ||
const stubAdapter = { | ||
|
@@ -227,7 +227,7 @@ describe('model action creators', () => { | |
this.destroy = modelActions.destroy; | ||
}); | ||
|
||
it('calls destroy on the adapter', function () { | ||
it('calls destroy on the adapter', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is going on here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are nested |
||
it('calls fetch on the adapter', function () { | ||
const deferred = $.Deferred(); // eslint-disable-line new-cap | ||
const stubAdapter = { | ||
|
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.
uh, bad merge conflict? Let's not nest
it
blocks!