sanex3339 %!s(int64=9) %!d(string=hai) anos
pai
achega
abeb6c99ee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/Utils.spec.ts

+ 1 - 1
test/Utils.spec.ts

@@ -51,7 +51,7 @@ describe('Utils', () => {
     describe('getRandomVariableName (length: number = 6): string', () => {
         it('should return a string of given length with random variable name', () => {
             assert.match(Utils.getRandomVariableName(4), /^_0x(\w){4}$/);
-            assert.match(Utils.getRandomVariableName(6), /^_0x(\w){6}$/);
+            assert.match(Utils.getRandomVariableName(6), /^_0x(\w){4,6}$/);
         });
     });