mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
fixed test
This commit is contained in:
+1
-1
@@ -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}$/);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user