File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = function(config) {
21
21
logLevel : config . LOG_WARN ,
22
22
autoWatch : false ,
23
23
browsers : [ 'HeadlessChrome' ] ,
24
- singleRun : true ,
24
+ singleRun : false ,
25
25
concurrency : Infinity ,
26
26
customLaunchers : {
27
27
HeadlessChrome : {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default class BrowserCryptoProvider implements CryptoProvider {
17
17
}
18
18
}
19
19
20
- sha256Digest ( toHash : SourceData ) : PromiseLike < Uint8Array > {
20
+ sha256Digest ( toHash : SourceData ) : Promise < Uint8Array > {
21
21
if ( isEmptyData ( toHash ) ) {
22
22
return emptyDataSha256 ( ) ;
23
23
}
@@ -27,7 +27,7 @@ export default class BrowserCryptoProvider implements CryptoProvider {
27
27
. then < Uint8Array > ( buffer => new Uint8Array ( buffer ) ) ;
28
28
}
29
29
30
- hmacSha256 ( toHash : SourceData , secret : SourceData ) : PromiseLike < Uint8Array > {
30
+ hmacSha256 ( toHash : SourceData , secret : SourceData ) : Promise < Uint8Array > {
31
31
if ( isEmptyData ( secret ) ) {
32
32
return Promise . reject ( 'HMAC signatures cannot be generated with empty key data.' ) ;
33
33
}
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ export interface ProviderOptions {
5
5
}
6
6
7
7
interface CryptoProvider {
8
- sha256Digest ( toHash : SourceData ) : PromiseLike < Uint8Array > ;
9
- hmacSha256 ( toHash : SourceData , secret : SourceData ) : PromiseLike < Uint8Array > ;
10
- randomValues ( length : number ) : PromiseLike < Uint8Array > ;
8
+ sha256Digest ( toHash : SourceData ) : Promise < Uint8Array > ;
9
+ hmacSha256 ( toHash : SourceData , secret : SourceData ) : Promise < Uint8Array > ;
10
+ randomValues ( length : number ) : Promise < Uint8Array > ;
11
11
}
12
12
13
13
export default CryptoProvider ;
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"prepublishOnly" : " tsc" ,
9
9
"pretest" : " tsc" ,
10
- "test" : " mocha && karma start"
10
+ "test" : " mocha && karma start --single-run "
11
11
},
12
12
13
13
"license" : " UNLICENSED" ,
You can’t perform that action at this time.
0 commit comments