@@ -66,23 +66,23 @@ describe('Test Lab Functions', () => {
6666 resource : { } ,
6767 } ,
6868 } ;
69- const expected = < testLab . TestMatrix > {
69+ const expected = {
7070 testMatrixId : 'matrix-375mfeu9mnw8t' ,
7171 state : 'INVALID' ,
7272 createTime : '2019-04-15T17:43:32.538Z' ,
7373 outcomeSummary : undefined ,
7474 invalidMatrixDetails : 'INVALID_INPUT_APK' ,
75- resultStorage : < testLab . ResultStorage > {
75+ resultStorage : {
7676 gcsPath : 'gs://test.appspot.com' ,
7777 resultsUrl : undefined ,
7878 toolResultsHistoryId : undefined ,
7979 toolResultsExecutionId : undefined ,
80- } ,
81- clientInfo : < testLab . ClientInfo > {
80+ } as testLab . ResultStorage ,
81+ clientInfo : {
8282 name : 'test' ,
8383 details : { } ,
84- } ,
85- } ;
84+ } as testLab . ClientInfo ,
85+ } as testLab . TestMatrix ;
8686 const func = testLab . testMatrix ( ) . onComplete ( ( matrix ) => matrix ) ;
8787 return expect ( func ( event . data , event . context ) ) . to . eventually . deep . equal (
8888 expected
@@ -119,23 +119,23 @@ describe('Test Lab Functions', () => {
119119 resource : { } ,
120120 } ,
121121 } ;
122- const expected = < testLab . TestMatrix > {
122+ const expected = {
123123 testMatrixId : 'matrix-tsgjk8pnvxhya' ,
124124 state : 'FINISHED' ,
125125 createTime : '2019-04-15T18:03:11.115Z' ,
126126 outcomeSummary : 'FAILURE' ,
127127 invalidMatrixDetails : undefined ,
128- resultStorage : < testLab . ResultStorage > {
128+ resultStorage : {
129129 gcsPath : 'gs://test.appspot.com' ,
130130 toolResultsHistoryId : 'bh.9b6f4dac24d3049' ,
131131 toolResultsExecutionId : '6352915701487950333' ,
132132 resultsUrl : 'https://path/to/results' ,
133- } ,
134- clientInfo : < testLab . ClientInfo > {
133+ } as testLab . ResultStorage ,
134+ clientInfo : {
135135 name : 'test' ,
136136 details : { } ,
137- } ,
138- } ;
137+ } as testLab . ClientInfo ,
138+ } as testLab . TestMatrix ;
139139 const func = testLab . testMatrix ( ) . onComplete ( ( matrix ) => matrix ) ;
140140 return expect ( func ( event . data , event . context ) ) . to . eventually . deep . equal (
141141 expected
@@ -161,15 +161,15 @@ describe('Test Lab Functions', () => {
161161 describe ( 'TestMatrix' , ( ) => {
162162 describe ( 'constructor' , ( ) => {
163163 it ( 'should populate basic fields' , ( ) => {
164- const expected = < testLab . TestMatrix > {
164+ const expected = {
165165 testMatrixId : 'id1' ,
166166 createTime : '2019-02-08T18:50:32.178Z' ,
167167 state : 'FINISHED' ,
168168 outcomeSummary : 'SUCCESS' ,
169169 invalidMatrixDetails : 'DETAILS_UNAVAILABLE' ,
170170 resultStorage : new testLab . ResultStorage ( ) ,
171171 clientInfo : new testLab . ClientInfo ( ) ,
172- } ;
172+ } as testLab . TestMatrix ;
173173 const actual = new testLab . TestMatrix ( {
174174 testMatrixId : 'id1' ,
175175 timestamp : '2019-02-08T18:50:32.178Z' ,
@@ -185,24 +185,24 @@ describe('Test Lab Functions', () => {
185185 describe ( 'ClientInfo' , ( ) => {
186186 describe ( 'constructor' , ( ) => {
187187 it ( 'should populate basic fields' , ( ) => {
188- const expected = < testLab . ClientInfo > {
188+ const expected = {
189189 name : 'client' ,
190190 details : { } ,
191- } ;
191+ } as testLab . ClientInfo ;
192192 const actual = new testLab . ClientInfo ( {
193193 name : 'client' ,
194194 } ) ;
195195 expect ( actual ) . to . deep . equal ( expected ) ;
196196 } ) ;
197197
198198 it ( 'should populate key/value details' , ( ) => {
199- const expected = < testLab . ClientInfo > {
199+ const expected = {
200200 name : 'client' ,
201201 details : {
202202 k0 : 'v0' ,
203203 k1 : '' ,
204204 } ,
205- } ;
205+ } as testLab . ClientInfo ;
206206 const actual = new testLab . ClientInfo ( {
207207 name : 'client' ,
208208 clientInfoDetails : [
@@ -223,12 +223,12 @@ describe('Test Lab Functions', () => {
223223 describe ( 'ResultStorage' , ( ) => {
224224 describe ( 'constructor' , ( ) => {
225225 it ( 'should populate basic fields' , ( ) => {
226- const expected = < testLab . ResultStorage > {
226+ const expected = {
227227 gcsPath : 'path' ,
228228 toolResultsHistoryId : 'h1' ,
229229 toolResultsExecutionId : 'e2' ,
230230 resultsUrl : 'http://example.com/' ,
231- } ;
231+ } as testLab . ResultStorage ;
232232 const actual = new testLab . ResultStorage ( {
233233 googleCloudStorage : {
234234 gcsPath : 'path' ,
0 commit comments