@@ -33,7 +33,7 @@ describe('DS.hasChanges(resourceName, id)', function () {
33
33
assert . isTrue ( DS . hasChanges ( 'post' , 5 ) ) ;
34
34
} ) ;
35
35
it ( 'should return false for resources with defined methods' , function ( ) {
36
- var Person = DS . defineResource ( {
36
+ DS . defineResource ( {
37
37
name : 'person' ,
38
38
methods : {
39
39
fullName : function ( ) {
@@ -50,7 +50,7 @@ describe('DS.hasChanges(resourceName, id)', function () {
50
50
51
51
assert . isFalse ( DS . hasChanges ( 'person' , 1 ) ) ;
52
52
} ) ;
53
- it ( 'should return false after loading relations' , function ( ) {
53
+ it ( 'should return false after loading relations' , function ( ) {
54
54
DS . inject ( 'user' , user10 ) ;
55
55
56
56
$httpBackend . expectGET ( 'http://test.angular-cache.com/organization/14?userId=10' ) . respond ( 200 , organization14 ) ;
@@ -61,7 +61,7 @@ describe('DS.hasChanges(resourceName, id)', function () {
61
61
] ) ;
62
62
$httpBackend . expectGET ( 'http://test.angular-cache.com/profile?userId=10' ) . respond ( 200 , profile15 ) ;
63
63
64
- DS . loadRelations ( 'user' , 10 , [ 'comment' , 'profile' , 'organization' ] , { params : { approvedBy : 10 } } ) . then ( function ( user ) {
64
+ DS . loadRelations ( 'user' , 10 , [ 'comment' , 'profile' , 'organization' ] , { params : { approvedBy : 10 } } ) . then ( function ( ) {
65
65
assert . isFalse ( DS . hasChanges ( 'user' , 10 ) ) ;
66
66
} , fail ) ;
67
67
@@ -71,7 +71,7 @@ describe('DS.hasChanges(resourceName, id)', function () {
71
71
DS . inject ( 'comment' , comment19 ) ;
72
72
$httpBackend . expectGET ( 'http://test.angular-cache.com/user/20' ) . respond ( 200 , user20 ) ;
73
73
$httpBackend . expectGET ( 'http://test.angular-cache.com/user/19' ) . respond ( 200 , user19 ) ;
74
- DS . loadRelations ( 'comment' , 19 , [ 'user' ] ) . then ( function ( comment ) {
74
+ DS . loadRelations ( 'comment' , 19 , [ 'user' ] ) . then ( function ( ) {
75
75
assert . isFalse ( DS . hasChanges ( 'comment' , 19 ) ) ;
76
76
} , fail ) ;
77
77
$httpBackend . flush ( ) ;
0 commit comments