@@ -31,10 +31,6 @@ type TestEnvironmentInput = Partial<DesktopEnvironment.MakeDesktopEnvironmentInp
3131} ;
3232
3333interface ElectronAppCalls {
34- readonly appendCommandLineSwitch : Array < {
35- readonly name : string ;
36- readonly value : string | undefined ;
37- } > ;
3834 readonly setAboutPanelOptions : Array < Electron . AboutPanelOptionsOptions > ;
3935 readonly setDockIcon : string [ ] ;
4036 readonly setName : string [ ] ;
@@ -66,10 +62,7 @@ const makeElectronAppLayer = (calls: ElectronAppCalls) =>
6662 Effect . sync ( ( ) => {
6763 calls . setDockIcon . push ( iconPath ) ;
6864 } ) ,
69- appendCommandLineSwitch : ( name , value ) =>
70- Effect . sync ( ( ) => {
71- calls . appendCommandLineSwitch . push ( { name, value } ) ;
72- } ) ,
65+ appendCommandLineSwitch : ( ) => Effect . void ,
7366 onBeforeQuitForUpdate : ( ) => Effect . void ,
7467 removeCommandLineSwitch : ( ) => Effect . void ,
7568 on : ( ) => Effect . void ,
@@ -121,7 +114,6 @@ const withIdentity = <A, E, R>(
121114 } = { } ,
122115) => {
123116 const calls : ElectronAppCalls = input . calls ?? {
124- appendCommandLineSwitch : [ ] ,
125117 setAboutPanelOptions : [ ] ,
126118 setDockIcon : [ ] ,
127119 setName : [ ] ,
@@ -192,7 +184,6 @@ describe("DesktopAppIdentity", () => {
192184
193185 it . effect ( "configures app identity from the environment commit override" , ( ) => {
194186 const calls : ElectronAppCalls = {
195- appendCommandLineSwitch : [ ] ,
196187 setAboutPanelOptions : [ ] ,
197188 setDockIcon : [ ] ,
198189 setName : [ ] ,
@@ -220,23 +211,4 @@ describe("DesktopAppIdentity", () => {
220211 } ,
221212 ) ;
222213 } ) ;
223-
224- it . effect ( "sets the Linux window class used by the packaged desktop entry" , ( ) => {
225- const calls : ElectronAppCalls = {
226- appendCommandLineSwitch : [ ] ,
227- setAboutPanelOptions : [ ] ,
228- setDockIcon : [ ] ,
229- setName : [ ] ,
230- } ;
231-
232- return withIdentity (
233- Effect . gen ( function * ( ) {
234- const identity = yield * DesktopAppIdentity . DesktopAppIdentity ;
235- yield * identity . configure ;
236-
237- assert . deepEqual ( calls . appendCommandLineSwitch , [ { name : "class" , value : "t3code" } ] ) ;
238- } ) ,
239- { calls, environment : { platform : "linux" } } ,
240- ) ;
241- } ) ;
242214} ) ;
0 commit comments