File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ describe("Socket", () => {
155
155
eventHandlers . end ( ) ;
156
156
157
157
await wait ( ) ;
158
- expect ( data ) . not . toBeUndefined ( ) ;
158
+ expect ( data ) . toBeDefined ( ) ;
159
159
} ) ;
160
160
161
161
it ( "should resolve data when the socket close event is fired and the instance is of kind client" , async ( ) => {
@@ -181,7 +181,7 @@ describe("Socket", () => {
181
181
eventHandlers . close ( ) ;
182
182
183
183
await wait ( ) ;
184
- expect ( data ) . not . toBeUndefined ( ) ;
184
+ expect ( data ) . toBeDefined ( ) ;
185
185
} ) ;
186
186
187
187
it ( "should reject if the data could not be properly decoded" , async ( ) => {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ describe("utils", () => {
25
25
26
26
describe ( "encode" , ( ) => {
27
27
it ( "should transform a JSON serializable object into a base64 string" , ( ) => {
28
- expect ( utils . encode ( { hello : "world" } ) ) . toStrictEqual ( "eyJoZWxsbyI6IndvcmxkIn0=" ) ;
28
+ expect ( utils . encode ( { hello : "world" } ) ) . toBe ( "eyJoZWxsbyI6IndvcmxkIn0=" ) ;
29
29
} ) ;
30
30
} ) ;
31
31
@@ -60,7 +60,7 @@ describe("utils", () => {
60
60
61
61
eventHandlers . end ( ) ;
62
62
63
- expect ( await resultPromise ) . toStrictEqual ( "" ) ;
63
+ expect ( await resultPromise ) . toBe ( "" ) ;
64
64
} ) ;
65
65
66
66
it ( "should return a concatenated string of non-null values read from stdin" , async ( ) => {
@@ -73,7 +73,7 @@ describe("utils", () => {
73
73
74
74
eventHandlers . end ( ) ;
75
75
76
- expect ( await resultPromise ) . toStrictEqual ( "hello2world" ) ;
76
+ expect ( await resultPromise ) . toBe ( "hello2world" ) ;
77
77
} ) ;
78
78
} ) ;
79
79
You can’t perform that action at this time.
0 commit comments