|
1 | 1 | /** |
2 | 2 | * @author Jason Dobry <jason.dobry@gmail.com> |
3 | 3 | * @file angular-data-mocks.js |
4 | | - * @version 0.2.0 - Homepage <https://github.com/jmdobry/angular-data-mocks> |
| 4 | + * @version 0.3.0 - Homepage <https://github.com/jmdobry/angular-data-mocks> |
5 | 5 | * @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/> |
6 | 6 | * @license MIT <https://github.com/jmdobry/angular-data-mocks/blob/master/LICENSE> |
7 | 7 | * |
|
12 | 12 | * @id angular-data-mocks |
13 | 13 | * @name angular-data-mocks |
14 | 14 | * @description |
15 | | - * Fake DS implementation suitable for unit testing applications that use the `angular-data.DS` module. |
| 15 | + * Fake angular-data implementation suitable for unit testing angular applications that use the `angular-data.DS` module. |
16 | 16 | * |
17 | | - * __Version:__ 0.2.0 |
| 17 | + * __Version:__ 0.3.0 |
18 | 18 | * |
19 | | - * __angular-data-mocks requires sinon to be loaded to function.__ |
| 19 | + * __angular-data-mocks requires sinon to be loaded in order to work.__ |
20 | 20 | * |
21 | 21 | * ## Install |
22 | 22 | * |
|
179 | 179 |
|
180 | 180 | /** |
181 | 181 | * @doc interface |
182 | | - * @id DSHttpAdapterMock |
183 | | - * @name DSHttpAdapterMock |
| 182 | + * @id DSHttpAdapter |
| 183 | + * @name DSHttpAdapter |
184 | 184 | * @description |
185 | 185 | * A mock implementation of `DSHttpAdapter` with helper methods for declaring and testing expectations. |
186 | 186 | * |
187 | | - * __angular-data-mocks requires sinon to be loaded to function.__ |
| 187 | + * __angular-data-mocks requires sinon to be loaded in order to work.__ |
188 | 188 | * |
189 | 189 | * See the [testing guide](/documentation/guide/angular-data-mocks/index). |
190 | 190 | */ |
191 | 191 | var DSHttpAdapter = { |
192 | 192 | /** |
193 | 193 | * @doc method |
194 | | - * @id DSHttpAdapterMock.methods:expect |
| 194 | + * @id DSHttpAdapter.methods:expect |
195 | 195 | * @name expect |
196 | 196 | * @description |
197 | 197 | * Create an expectation. |
|
216 | 216 |
|
217 | 217 | /** |
218 | 218 | * @doc method |
219 | | - * @id DSHttpAdapterMock.methods:flush |
| 219 | + * @id DSHttpAdapter.methods:flush |
220 | 220 | * @name flush |
221 | 221 | * @description |
222 | 222 | * Flush the pending expectations. |
|
245 | 245 |
|
246 | 246 | /** |
247 | 247 | * @doc method |
248 | | - * @id DSHttpAdapterMock.methods:verifyNoOutstandingExpectation |
| 248 | + * @id DSHttpAdapter.methods:verifyNoOutstandingExpectation |
249 | 249 | * @name verifyNoOutstandingExpectation |
250 | 250 | * @description |
251 | 251 | * Ensure that no expectations remain unfulfilled. |
|
260 | 260 |
|
261 | 261 | /** |
262 | 262 | * @doc method |
263 | | - * @id DSHttpAdapterMock.methods:expectCreate |
| 263 | + * @id DSHttpAdapter.methods:expectCreate |
264 | 264 | * @name expectCreate |
265 | 265 | * @description |
266 | 266 | * Create an expectation that `DSHttpAdapter.create` will be called. |
|
285 | 285 | */ |
286 | 286 | /** |
287 | 287 | * @doc method |
288 | | - * @id DSHttpAdapterMock.methods:expectDEL |
| 288 | + * @id DSHttpAdapter.methods:expectDEL |
289 | 289 | * @name expectDEL |
290 | 290 | * @description |
291 | 291 | * Create an expectation that `DSHttpAdapter.DEL` will be called. |
|
302 | 302 | */ |
303 | 303 | /** |
304 | 304 | * @doc method |
305 | | - * @id DSHttpAdapterMock.methods:expectDestroy |
| 305 | + * @id DSHttpAdapter.methods:expectDestroy |
306 | 306 | * @name expectDestroy |
307 | 307 | * @description |
308 | 308 | * Create an expectation that `DSHttpAdapter.destroy` will be called. |
|
322 | 322 | */ |
323 | 323 | /** |
324 | 324 | * @doc method |
325 | | - * @id DSHttpAdapterMock.methods:expectDestroyAll |
| 325 | + * @id DSHttpAdapter.methods:expectDestroyAll |
326 | 326 | * @name expectDestroyAll |
327 | 327 | * @description |
328 | 328 | * Create an expectation that `DSHttpAdapter.destroyAll` will be called. |
|
354 | 354 | */ |
355 | 355 | /** |
356 | 356 | * @doc method |
357 | | - * @id DSHttpAdapterMock.methods:expectFind |
| 357 | + * @id DSHttpAdapter.methods:expectFind |
358 | 358 | * @name expectFind |
359 | 359 | * @description |
360 | 360 | * Create an expectation that `DSHttpAdapter.find` will be called. |
|
378 | 378 | */ |
379 | 379 | /** |
380 | 380 | * @doc method |
381 | | - * @id DSHttpAdapterMock.methods:expectFindAll |
| 381 | + * @id DSHttpAdapter.methods:expectFindAll |
382 | 382 | * @name expectFindAll |
383 | 383 | * @description |
384 | 384 | * Create an expectation that `DSHttpAdapter.findAll` will be called. |
|
411 | 411 | */ |
412 | 412 | /** |
413 | 413 | * @doc method |
414 | | - * @id DSHttpAdapterMock.methods:expectGET |
| 414 | + * @id DSHttpAdapter.methods:expectGET |
415 | 415 | * @name expectGET |
416 | 416 | * @description |
417 | 417 | * Create an expectation that `DSHttpAdapter.GET` will be called. |
|
429 | 429 | */ |
430 | 430 | /** |
431 | 431 | * @doc method |
432 | | - * @id DSHttpAdapterMock.methods:expectHTTP |
| 432 | + * @id DSHttpAdapter.methods:expectHTTP |
433 | 433 | * @name expectHTTP |
434 | 434 | * @description |
435 | 435 | * Create an expectation that `DSHttpAdapter.HTTP` will be called. |
|
449 | 449 | */ |
450 | 450 | /** |
451 | 451 | * @doc method |
452 | | - * @id DSHttpAdapterMock.methods:expectPOST |
| 452 | + * @id DSHttpAdapter.methods:expectPOST |
453 | 453 | * @name expectPOST |
454 | 454 | * @description |
455 | 455 | * Create an expectation that `DSHttpAdapter.POST` will be called. |
|
467 | 467 | */ |
468 | 468 | /** |
469 | 469 | * @doc method |
470 | | - * @id DSHttpAdapterMock.methods:expectPUT |
| 470 | + * @id DSHttpAdapter.methods:expectPUT |
471 | 471 | * @name expectPUT |
472 | 472 | * @description |
473 | 473 | * Create an expectation that `DSHttpAdapter.PUT` will be called. |
|
485 | 485 | */ |
486 | 486 | /** |
487 | 487 | * @doc method |
488 | | - * @id DSHttpAdapterMock.methods:expectUpdate |
| 488 | + * @id DSHttpAdapter.methods:expectUpdate |
489 | 489 | * @name expectUpdate |
490 | 490 | * @description |
491 | 491 | * Create an expectation that `DSHttpAdapter.update` will be called. |
|
510 | 510 | */ |
511 | 511 | /** |
512 | 512 | * @doc method |
513 | | - * @id DSHttpAdapterMock.methods:expectUpdateAll |
| 513 | + * @id DSHttpAdapter.methods:expectUpdateAll |
514 | 514 | * @name expectUpdateAll |
515 | 515 | * @description |
516 | 516 | * Create an expectation that `DSHttpAdapter.updateAll` will be called. |
|
603 | 603 | * @description |
604 | 604 | * A mock implementation of `DS` with helper methods for declaring and testing expectations. |
605 | 605 | * |
606 | | - * __angular-data-mocks requires sinon to be loaded to function.__ |
| 606 | + * __angular-data-mocks requires sinon to be loaded in order to work.__ |
607 | 607 | * |
608 | 608 | * See the [testing guide](/documentation/guide/angular-data-mocks/index). |
609 | 609 | */ |
|
759 | 759 | * @doc method |
760 | 760 | * @id DSMock.methods:expectDestroy |
761 | 761 | * @name expectDestroy |
| 762 | + * @description |
762 | 763 | * Create an expectation that `DS.destroy` will be called. |
763 | 764 | * |
764 | 765 | * ## Signature: |
|
775 | 776 | * @doc method |
776 | 777 | * @id DSMock.methods:expectDestroyAll |
777 | 778 | * @name expectDestroyAll |
| 779 | + * @description |
778 | 780 | * Create an expectation that `DS.destroyAll` will be called. |
779 | 781 | * |
780 | 782 | * ## Signature: |
|
799 | 801 | * @doc method |
800 | 802 | * @id DSMock.methods:expectFind |
801 | 803 | * @name expectFind |
| 804 | + * @description |
802 | 805 | * Create an expectation that `DS.find` will be called. |
803 | 806 | * |
804 | 807 | * ## Signature: |
|
818 | 821 | * @doc method |
819 | 822 | * @id DSMock.methods:expectFindAll |
820 | 823 | * @name expectFindAll |
| 824 | + * @description |
821 | 825 | * Create an expectation that `DS.findAll` will be called. |
822 | 826 | * |
823 | 827 | * ## Signature: |
|
845 | 849 | * @doc method |
846 | 850 | * @id DSMock.methods:expectRefresh |
847 | 851 | * @name expectRefresh |
| 852 | + * @description |
848 | 853 | * Create an expectation that `DS.refresh` will be called. |
849 | 854 | * |
850 | 855 | * ## Signature: |
|
864 | 869 | * @doc method |
865 | 870 | * @id DSMock.methods:expectSave |
866 | 871 | * @name expectSave |
| 872 | + * @description |
867 | 873 | * Create an expectation that `DS.save` will be called. |
868 | 874 | * |
869 | 875 | * ## Signature: |
|
883 | 889 | * @doc method |
884 | 890 | * @id DSMock.methods:expectUpdate |
885 | 891 | * @name expectUpdate |
| 892 | + * @description |
886 | 893 | * Create an expectation that `DS.update` will be called. |
887 | 894 | * |
888 | 895 | * ## Signature: |
|
904 | 911 | * @doc method |
905 | 912 | * @id DSMock.methods:expectUpdateAll |
906 | 913 | * @name expectUpdateAll |
| 914 | + * @description |
907 | 915 | * Create an expectation that `DS.updateAll` will be called. |
908 | 916 | * |
909 | 917 | * ## Signature: |
|
0 commit comments