File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1206,7 +1206,7 @@ abstract class TestRunner {
1206
1206
`ResumeToken does not match - expected:
1207
1207
${ stringFromBase64String (
1208
1208
expectedTarget . resumeToken
1209
- ) } , actual: ${ stringFromBase64String ( expectedTarget . resumeToken ) } `
1209
+ ) } , actual: ${ stringFromBase64String ( actualTarget . resumeToken ) } `
1210
1210
) ;
1211
1211
delete actualTargets [ targetId ] ;
1212
1212
} ) ;
Original file line number Diff line number Diff line change @@ -524,13 +524,12 @@ export function byteStringFromString(value: string): ByteString {
524
524
*/
525
525
export function stringFromBase64String (
526
526
value ?: string | Uint8Array
527
- ) : ByteString {
527
+ ) : string {
528
528
assert (
529
529
value === undefined || typeof value === 'string' ,
530
530
'Can only decode base64 encoded strings'
531
531
) ;
532
- const base64 = PlatformSupport . getPlatform ( ) . btoa ( value ?? '' ) ;
533
- return ByteString . fromBase64String ( base64 ) ;
532
+ return PlatformSupport . getPlatform ( ) . atob ( value ?? '' ) ;
534
533
}
535
534
536
535
/** Creates a resume token to match the given snapshot version. */
You can’t perform that action at this time.
0 commit comments