@@ -747,7 +747,7 @@ module('Integration | Graph | Diff Preservation', function (hooks) {
747
747
class App extends Model {
748
748
@attr declare name : string ;
749
749
@hasMany ( 'config' , { async : false , inverse : 'app' } ) declare configs : Config [ ] ;
750
- @hasMany ( 'namespace' , { async : false , inverse : 'apps' } ) declare namespaces : Namespace | null ;
750
+ @hasMany ( 'namespace' , { async : false , inverse : 'apps' } ) declare namespaces : Namespace [ ] ;
751
751
}
752
752
753
753
class Namespace extends Model {
@@ -777,7 +777,7 @@ module('Integration | Graph | Diff Preservation', function (hooks) {
777
777
// each namespace has the app and 2 more apps
778
778
store . _join ( ( ) => {
779
779
// setup primary app relationships
780
- // this also convers the belongsTo side on config
780
+ // this also converts the belongsTo side on config
781
781
graph . push ( {
782
782
op : 'updateRelationship' ,
783
783
field : 'configs' ,
@@ -821,6 +821,12 @@ module('Integration | Graph | Diff Preservation', function (hooks) {
821
821
} ) ;
822
822
} ) ;
823
823
824
+ // we access these relationships so that we do not fall victim
825
+ // in this test to laziness optimizations where calcs are not made
826
+ // if the data is not accessed
827
+ graph . getData ( appIdentifier , 'configs' ) ;
828
+ graph . getData ( appIdentifier , 'namespaces' ) ;
829
+
824
830
// mutate app:1.configs, adding config:5
825
831
// mutate app:1.namespaces, adding namespace:5
826
832
store . _join ( ( ) => {
@@ -842,7 +848,7 @@ module('Integration | Graph | Diff Preservation', function (hooks) {
842
848
// for app:1
843
849
store . _join ( ( ) => {
844
850
// setup primary app relationships
845
- // this also convers the belongsTo side on config
851
+ // this also converts the belongsTo side on config
846
852
graph . push ( {
847
853
op : 'updateRelationship' ,
848
854
field : 'configs' ,
0 commit comments