@@ -27,11 +27,11 @@ module.exports = {
2727 }
2828 beforeEach ( function ( ) {
2929 this . $$adapter = new options . Adapter ( options . adapterConfig )
30- this . $$store = new options . DS ( {
30+ this . $$store = new options . DS ( options . storeConfig || {
3131 log : false ,
3232 debug : false
3333 } )
34- this . $$User = this . $$store . defineResource ( {
34+ this . $$User = this . $$store . defineResource ( options . userConfig || {
3535 name : 'user' ,
3636 relations : {
3737 hasMany : {
@@ -51,14 +51,14 @@ module.exports = {
5151 }
5252 }
5353 }
54- } || options . userConfig )
55- this . $$Profile = this . $$store . defineResource ( {
54+ } )
55+ this . $$Profile = this . $$store . defineResource ( options . profileConfig || {
5656 name : 'profile'
57- } || options . profileConfig )
58- this . $$Address = this . $$store . defineResource ( {
57+ } )
58+ this . $$Address = this . $$store . defineResource ( options . addressConfig || {
5959 name : 'address'
60- } || options . addressConfig )
61- this . $$Post = this . $$store . defineResource ( {
60+ } )
61+ this . $$Post = this . $$store . defineResource ( options . postConfig || {
6262 name : 'post' ,
6363 relations : {
6464 belongsTo : {
@@ -74,8 +74,8 @@ module.exports = {
7474 }
7575 }
7676 }
77- } || options . postConfig )
78- this . $$Comment = this . $$store . defineResource ( {
77+ } )
78+ this . $$Comment = this . $$store . defineResource ( options . commentConfig || {
7979 name : 'comment' ,
8080 relations : {
8181 belongsTo : {
@@ -89,7 +89,7 @@ module.exports = {
8989 }
9090 }
9191 }
92- } || options . commentConfig )
92+ } )
9393 } )
9494
9595 describe ( 'js-data-adapter-tests' , function ( ) {
0 commit comments