File tree 1 file changed +4
-3
lines changed
tests/performance/app/routes
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export default Route.extend({
5
5
store : service ( ) ,
6
6
7
7
async model ( ) {
8
+ console . group ( 'test-setup' ) ;
8
9
performance . mark ( 'start-data-generation' ) ;
9
10
10
11
const initialPayload = await fetch ( './fixtures/add-children-initial.json' ) . then ( ( r ) => r . json ( ) ) ;
@@ -32,6 +33,7 @@ export default Route.extend({
32
33
const children = await parent . children ;
33
34
34
35
await logChildren ( parent ) ;
36
+ console . groupEnd ( ) ;
35
37
36
38
performance . mark ( 'start-local-removal' ) ;
37
39
console . group ( 'start-local-removal' ) ;
@@ -74,10 +76,9 @@ function iterateChild(record, seen) {
74
76
}
75
77
seen . add ( record ) ;
76
78
77
- record . bestFriend . get ( 'name' ) ;
78
- record . secondBestFriend . get ( 'name' ) ;
79
- record . friends . forEach ( ( child ) => iterateChild ( child , seen ) ) ;
79
+ record . parent . get ( 'name' ) ;
80
80
}
81
+
81
82
function iterateParent ( record , seen ) {
82
83
seen . add ( record ) ;
83
84
record . children . forEach ( ( child ) => iterateChild ( child , seen ) ) ;
You can’t perform that action at this time.
0 commit comments