File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
// Minimal assert version to avoid dependecies on node internals
2
2
// Allows to verify that none of brwoserify version of node internals is included in resulting build
3
- async function deepStrictEqual (
4
- actual : unknown ,
5
- expected : unknown ,
6
- message ?: string
7
- ) {
3
+ function deepStrictEqual ( actual : unknown , expected : unknown , message ?: string ) {
8
4
const [ actualType , expectedType ] = [ typeof actual , typeof expected ] ;
9
5
const err = new Error (
10
6
`Non-equal values: actual=${ actual } (type=${ actualType } ) expected=${ expected } (type=${ expectedType } )${
@@ -49,7 +45,7 @@ async function deepStrictEqual(
49
45
if ( actualType === "object" ) {
50
46
const [ actualKeys , expectedKeys ] = [
51
47
Object . keys ( actual as object ) ,
52
- Object . keys ( expected as object )
48
+ Object . keys ( expected as object ) ,
53
49
] ;
54
50
deepStrictEqual ( actualKeys , expectedKeys , message ) ;
55
51
for ( const key of actualKeys ) {
@@ -60,7 +56,7 @@ async function deepStrictEqual(
60
56
throw err ;
61
57
}
62
58
63
- async function throws ( cb : ( ) => any ) {
59
+ function throws ( cb : ( ) => any ) {
64
60
try {
65
61
cb ( ) ;
66
62
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments