@@ -36,7 +36,7 @@ describe("Test suite for CICSSessionTree", () => {
36
36
37
37
describe ( "validation" , ( ) => {
38
38
beforeEach ( ( ) => {
39
- cst = new CICSSessionTree ( cicsProfileMock , undefined , getIconFilePathFromName ( "profile" ) ) ;
39
+ cst = new CICSSessionTree ( cicsProfileMock , getIconFilePathFromName ( "profile" ) ) ;
40
40
ses = cst . getSession ( ) ;
41
41
} ) ;
42
42
@@ -98,7 +98,7 @@ describe("Test suite for CICSSessionTree", () => {
98
98
Cookie : "blah=hello"
99
99
} ;
100
100
101
- cst = new CICSSessionTree ( cicsProfileMock , undefined , getIconFilePathFromName ( "profile" ) ) ;
101
+ cst = new CICSSessionTree ( cicsProfileMock , getIconFilePathFromName ( "profile" ) ) ;
102
102
ses = cst . getSession ( ) ;
103
103
104
104
ses . storeCookie ( cookie ) ;
@@ -112,7 +112,7 @@ describe("Test suite for CICSSessionTree", () => {
112
112
Cookie : "LtpaToken2=testValue"
113
113
} ;
114
114
115
- cst = new CICSSessionTree ( cicsProfileMock , undefined , getIconFilePathFromName ( "profile" ) ) ;
115
+ cst = new CICSSessionTree ( cicsProfileMock , getIconFilePathFromName ( "profile" ) ) ;
116
116
ses = cst . getSession ( ) ;
117
117
118
118
ses . storeCookie ( cookies ) ;
@@ -126,32 +126,7 @@ describe("Test suite for CICSSessionTree", () => {
126
126
Cookie : "blah=hello;LtpaToken2=testValue"
127
127
} ;
128
128
129
- cst = new CICSSessionTree ( cicsProfileMock , undefined , getIconFilePathFromName ( "profile" ) ) ;
130
- ses = cst . getSession ( ) ;
131
-
132
- ses . storeCookie ( cookies ) ;
133
-
134
- expect ( ses . ISession . tokenType ) . toEqual ( "LtpaToken2" ) ;
135
- expect ( ses . ISession . tokenValue ) . toEqual ( "testValue" ) ;
136
- } ) ;
137
-
138
-
139
- it ( "Should store valid cookie if the session is provided" , ( ) => {
140
- const cookies = {
141
- Cookie : "blah=hello;LtpaToken2=testValue"
142
- } ;
143
-
144
- const mockSession = new imperative . Session ( {
145
- type : SessConstants . AUTH_TYPE_TOKEN ,
146
- storeCookie : true ,
147
- tokenType : SessConstants . TOKEN_TYPE_LTPA ,
148
- hostname : cicsProfileMock . profile . host ,
149
- port : Number ( cicsProfileMock . profile . port ) ,
150
- user : cicsProfileMock . profile . user || "" ,
151
- password : cicsProfileMock . profile . password || "" ,
152
- rejectUnauthorized : cicsProfileMock . profile . rejectUnauthorized } ) ;
153
-
154
- cst = new CICSSessionTree ( cicsProfileMock , mockSession , getIconFilePathFromName ( "profile" ) ) ;
129
+ cst = new CICSSessionTree ( cicsProfileMock , getIconFilePathFromName ( "profile" ) ) ;
155
130
ses = cst . getSession ( ) ;
156
131
157
132
ses . storeCookie ( cookies ) ;
0 commit comments