33 RootRemoteDbItem ,
44} from "../../../src/databases/db-item" ;
55import {
6- calculateNewExpandedState ,
6+ updateItemInExpandedState ,
77 ExpandedDbItem ,
88 ExpandedDbItemKind ,
99} from "../../../src/databases/db-item-expansion" ;
@@ -29,7 +29,7 @@ describe("db item expansion", () => {
2929 listName : "list2" ,
3030 } ) ;
3131
32- const newExpandedItems = calculateNewExpandedState (
32+ const newExpandedItems = updateItemInExpandedState (
3333 currentExpandedItems ,
3434 dbItem ,
3535 true ,
@@ -50,7 +50,7 @@ describe("db item expansion", () => {
5050 listName : "list2" ,
5151 } ) ;
5252
53- const newExpandedItems = calculateNewExpandedState ( [ ] , dbItem , true ) ;
53+ const newExpandedItems = updateItemInExpandedState ( [ ] , dbItem , true ) ;
5454
5555 expect ( newExpandedItems ) . toEqual ( [
5656 {
@@ -76,7 +76,7 @@ describe("db item expansion", () => {
7676 listName : "list1" ,
7777 } ) ;
7878
79- const newExpandedItems = calculateNewExpandedState (
79+ const newExpandedItems = updateItemInExpandedState (
8080 currentExpandedItems ,
8181 dbItem ,
8282 false ,
@@ -98,7 +98,7 @@ describe("db item expansion", () => {
9898
9999 const dbItem : RootRemoteDbItem = createRootRemoteDbItem ( ) ;
100100
101- const newExpandedItems = calculateNewExpandedState (
101+ const newExpandedItems = updateItemInExpandedState (
102102 currentExpandedItems ,
103103 dbItem ,
104104 false ,
0 commit comments