浏览代码

fixed test

sanex3339 9 年之前
父节点
当前提交
abeb6c99ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  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}$/);
         });
     });