@@ -204,7 +204,7 @@ describe("scripting", () => {
204204 } ) ;
205205
206206 const expectedComands = [ "evalsha" , "eval" , "get" , "evalsha" , "get" ] ;
207- expect ( commands . map ( ( c ) => c [ 0 ] ) ) . to . eql ( expectedComands ) ;
207+ expect ( commands . map ( ( c ) => c [ 0 ] . toLowerCase ( ) ) ) . to . have . members ( expectedComands ) ;
208208 } ) ;
209209
210210 it ( "should load scripts first before execution of pipeline" , async ( ) => {
@@ -230,7 +230,7 @@ describe("scripting", () => {
230230
231231 const expectedComands = [ "evalsha" , "get" , "eval" , "set" , "get" ] ;
232232
233- expect ( commands . map ( ( c ) => c [ 0 ] ) ) . to . eql ( expectedComands ) ;
233+ expect ( commands . map ( ( c ) => c [ 0 ] . toLowerCase ( ) ) ) . to . have . members ( expectedComands ) ;
234234 } ) ;
235235
236236 it ( "does not fallback to EVAL in regular transaction" , async ( ) => {
@@ -260,7 +260,7 @@ describe("scripting", () => {
260260 spy . restore ( ) ;
261261 expect ( spy . callCount ) . to . equal ( 4 ) ;
262262 const expectedComands = [ "multi" , "evalsha" , "evalsha" , "exec" ] ;
263- expect ( commands . map ( ( c ) => c [ 0 ] ) ) . to . eql ( expectedComands ) ;
263+ expect ( commands . map ( ( c ) => c [ 0 ] . toLowerCase ( ) ) ) . to . have . members ( expectedComands ) ;
264264 } ) ;
265265
266266 it ( "does not fallback to EVAL in manual transaction" , async ( ) => {
@@ -284,7 +284,7 @@ describe("scripting", () => {
284284 spy . restore ( ) ;
285285 expect ( spy . callCount ) . to . equal ( 4 ) ;
286286 const expectedComands = [ "multi" , "evalsha" , "evalsha" , "exec" ] ;
287- expect ( commands . map ( ( c ) => c [ 0 ] ) ) . to . eql ( expectedComands ) ;
287+ expect ( commands . map ( ( c ) => c [ 0 ] . toLowerCase ( ) ) ) . to . have . members ( expectedComands ) ;
288288 } ) ;
289289
290290 it ( "should support key prefixing" , ( done ) => {
0 commit comments