This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ function shallowClearAndCopy(src, dst) {
116
116
* @param {Object= } paramDefaults Default values for `url` parameters. These can be overridden in
117
117
* `actions` methods. If a parameter value is a function, it will be called every time
118
118
* a param value needs to be obtained for a request (unless the param was overridden). The function
119
- * will be passed the current data value as a argument.
119
+ * will be passed the current data value as an argument.
120
120
*
121
121
* Each key value in the parameter object is first bound to url template if present and then any
122
122
* excess keys are appended to the url search query after the `?`.
@@ -149,7 +149,7 @@ function shallowClearAndCopy(src, dst) {
149
149
* - **`params`** – {Object=} – Optional set of pre-bound parameters for this action. If any of
150
150
* the parameter value is a function, it will be called every time when a param value needs to
151
151
* be obtained for a request (unless the param was overridden). The function will be passed the
152
- * current data value as a argument.
152
+ * current data value as an argument.
153
153
* - **`url`** – {string} – action specific `url` override. The url templating is supported just
154
154
* like for the resource-level urls.
155
155
* - **`isArray`** – {boolean=} – If true then the returned object for this action is an array,
Original file line number Diff line number Diff line change @@ -650,11 +650,14 @@ describe("basic usage", function() {
650
650
651
651
expect ( fedor ) . toEqualData ( { id : 'fedor' , email : 'f@f.com' , count : 1 } ) ;
652
652
653
- $httpBackend . expect ( 'POST' , '/Person/fedor' ) . respond (
654
- { id : 'fedor' , email : 'f@f.com' , count : 2 } ) ;
653
+ $httpBackend . expect ( 'POST' , '/Person/fedor2' ) . respond (
654
+ { id : 'fedor2' , email : 'f2@f.com' , count : 2 } ) ;
655
+
656
+ fedor . id = 'fedor2' ;
655
657
fedor . $save ( ) ;
656
658
$httpBackend . flush ( ) ;
657
- expect ( fedor ) . toEqualData ( { id : 'fedor' , email : 'f@f.com' , count : 2 } ) ;
659
+
660
+ expect ( fedor ) . toEqualData ( { id : 'fedor2' , email : 'f2@f.com' , count : 2 } ) ;
658
661
} ) ;
659
662
660
663
You can’t perform that action at this time.
0 commit comments