@@ -72,9 +72,7 @@ describe("TowerList.vue", () => {
7272
7373 it ( "shows eye emoji for visible site" , ( ) => {
7474 const store = useStore ( ) ;
75- store . localSites = [
76- { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ,
77- ] ;
75+ store . localSites = [ { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ] ;
7876 const wrapper = mountTowerList ( ) ;
7977 // Eye emoji: 👁️
8078 expect ( wrapper . find ( "button.btn-outline-light" ) . text ( ) ) . toContain ( "👁️" ) ;
@@ -91,9 +89,7 @@ describe("TowerList.vue", () => {
9189
9290 it ( "calls toggleSiteVisibility on eye button click" , async ( ) => {
9391 const store = useStore ( ) ;
94- store . localSites = [
95- { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ,
96- ] ;
92+ store . localSites = [ { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ] ;
9793 store . toggleSiteVisibility = vi . fn ( ) ;
9894 const wrapper = mountTowerList ( ) ;
9995 await wrapper . find ( "button.btn-outline-light" ) . trigger ( "click" ) ;
@@ -103,29 +99,23 @@ describe("TowerList.vue", () => {
10399 it ( "hides delete button for non-admin" , ( ) => {
104100 const store = useStore ( ) ;
105101 store . isAdmin = false ;
106- store . localSites = [
107- { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ,
108- ] ;
102+ store . localSites = [ { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ] ;
109103 const wrapper = mountTowerList ( ) ;
110104 expect ( wrapper . find ( "button.btn-outline-danger" ) . exists ( ) ) . toBe ( false ) ;
111105 } ) ;
112106
113107 it ( "shows delete button for admin" , ( ) => {
114108 const store = useStore ( ) ;
115109 store . isAdmin = true ;
116- store . localSites = [
117- { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ,
118- ] ;
110+ store . localSites = [ { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ] ;
119111 const wrapper = mountTowerList ( ) ;
120112 expect ( wrapper . find ( "button.btn-outline-danger" ) . exists ( ) ) . toBe ( true ) ;
121113 } ) ;
122114
123115 it ( "calls removeSite on delete button click" , async ( ) => {
124116 const store = useStore ( ) ;
125117 store . isAdmin = true ;
126- store . localSites = [
127- { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ,
128- ] ;
118+ store . localSites = [ { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ] ;
129119 store . removeSite = vi . fn ( ) ;
130120 const wrapper = mountTowerList ( ) ;
131121 await wrapper . find ( "button.btn-outline-danger" ) . trigger ( "click" ) ;
@@ -134,9 +124,7 @@ describe("TowerList.vue", () => {
134124
135125 it ( "hides mesh paths button when fewer than 2 towers" , ( ) => {
136126 const store = useStore ( ) ;
137- store . localSites = [
138- { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ,
139- ] ;
127+ store . localSites = [ { params : makeSplatParams ( ) , taskId : "t1" , raster : { } as never , color : "#f00" , visible : true } ] ;
140128 const wrapper = mountTowerList ( ) ;
141129 expect ( wrapper . find ( "button.btn-outline-secondary, button.btn-outline-info" ) . exists ( ) ) . toBe ( false ) ;
142130 } ) ;
0 commit comments