mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Fixed string array analyzer tests
This commit is contained in:
+3
-2
@@ -249,7 +249,8 @@ describe('StringArrayStorageAnalyzer', () => {
|
||||
|
||||
before(() => {
|
||||
stringArrayStorageAnalyzer = getStringArrayStorageAnalyzer({
|
||||
stringArrayThreshold: 0.5
|
||||
stringArrayThreshold: 0.5,
|
||||
seed: 1
|
||||
});
|
||||
|
||||
const astTree: ESTree.Program = NodeFactory.programNode([
|
||||
@@ -266,7 +267,7 @@ describe('StringArrayStorageAnalyzer', () => {
|
||||
assert.deepEqual(stringArrayStorageItemData1, expectedStringArrayStorageItemData1);
|
||||
});
|
||||
|
||||
it('Variant #2: should return correct string array storage item data for literal node #1', () => {
|
||||
it('Variant #2: should return correct string array storage item data for literal node #2', () => {
|
||||
assert.deepEqual(stringArrayStorageItemData2, expectedStringArrayStorageItemData2);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user