@@ -8,7 +8,7 @@ describe('DSCacheFactory integration', function () {
88
99 it ( 'should get an item from the server and delete when using DSCacheFactory in passive mode' , function ( done ) {
1010 DS . defineResource ( {
11- name : 'comment ' ,
11+ name : 'Comment ' ,
1212 endpoint : '/comments' ,
1313 deleteOnExpire : 'passive' ,
1414 maxAge : 20
@@ -19,7 +19,7 @@ describe('DSCacheFactory integration', function () {
1919 text : 'test'
2020 } ) ;
2121
22- DS . find ( 'comment ' , 5 ) . then ( function ( comment ) {
22+ DS . find ( 'Comment ' , 5 ) . then ( function ( comment ) {
2323 assert . deepEqual ( comment , {
2424 id : 5 ,
2525 text : 'test'
@@ -31,15 +31,15 @@ describe('DSCacheFactory integration', function () {
3131
3232 $httpBackend . flush ( ) ;
3333
34- assert . deepEqual ( DS . get ( 'comment ' , 5 ) , {
34+ assert . deepEqual ( DS . get ( 'Comment ' , 5 ) , {
3535 id : 5 ,
3636 text : 'test'
3737 } , 'The comment is now in the store' ) ;
38- assert . isNumber ( DS . lastModified ( 'comment ' , 5 ) ) ;
39- assert . isNumber ( DS . lastSaved ( 'comment ' , 5 ) ) ;
38+ assert . isNumber ( DS . lastModified ( 'Comment ' , 5 ) ) ;
39+ assert . isNumber ( DS . lastSaved ( 'Comment ' , 5 ) ) ;
4040
4141 setTimeout ( function ( ) {
42- assert . isUndefined ( DS . get ( 'comment ' , 5 ) ) ;
42+ assert . isUndefined ( DS . get ( 'Comment ' , 5 ) ) ;
4343
4444 assert . equal ( lifecycle . beforeInject . callCount , 1 , 'beforeInject should have been called' ) ;
4545 assert . equal ( lifecycle . afterInject . callCount , 1 , 'afterInject should have been called' ) ;
@@ -51,7 +51,7 @@ describe('DSCacheFactory integration', function () {
5151 } ) ;
5252 it ( 'should get an item from the server and delete when using DSCacheFactory in aggressive mode' , function ( done ) {
5353 DS . defineResource ( {
54- name : 'comment ' ,
54+ name : 'Comment ' ,
5555 endpoint : '/comments' ,
5656 deleteOnExpire : 'aggressive' ,
5757 recycleFreq : 10 ,
@@ -63,7 +63,7 @@ describe('DSCacheFactory integration', function () {
6363 text : 'test'
6464 } ) ;
6565
66- DS . find ( 'comment ' , 5 ) . then ( function ( comment ) {
66+ DS . find ( 'Comment ' , 5 ) . then ( function ( comment ) {
6767 assert . deepEqual ( comment , {
6868 id : 5 ,
6969 text : 'test'
@@ -75,15 +75,15 @@ describe('DSCacheFactory integration', function () {
7575
7676 $httpBackend . flush ( ) ;
7777
78- assert . deepEqual ( DS . get ( 'comment ' , 5 ) , {
78+ assert . deepEqual ( DS . get ( 'Comment ' , 5 ) , {
7979 id : 5 ,
8080 text : 'test'
8181 } , 'The comment is now in the store' ) ;
82- assert . isNumber ( DS . lastModified ( 'comment ' , 5 ) ) ;
83- assert . isNumber ( DS . lastSaved ( 'comment ' , 5 ) ) ;
82+ assert . isNumber ( DS . lastModified ( 'Comment ' , 5 ) ) ;
83+ assert . isNumber ( DS . lastSaved ( 'Comment ' , 5 ) ) ;
8484
8585 setTimeout ( function ( ) {
86- assert . isUndefined ( DS . get ( 'comment ' , 5 ) ) ;
86+ assert . isUndefined ( DS . get ( 'Comment ' , 5 ) ) ;
8787
8888 assert . equal ( lifecycle . beforeInject . callCount , 1 , 'beforeInject should have been called' ) ;
8989 assert . equal ( lifecycle . afterInject . callCount , 1 , 'afterInject should have been called' ) ;
0 commit comments