8000 Fixed string array analyzer tests · sec-js/javascript-obfuscator@515e438 · GitHub
[go: up one dir, main page]

Skip to content

Commit 515e438

Browse files
author
sanex3339
committed
Fixed string array analyzer tests
1 parent 24135e3 commit 515e438

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/unit-tests/analyzers/string-array-storage-analyzer/StringArrayStorageAnalyzer.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ describe('StringArrayStorageAnalyzer', () => {
249249

250250
before(() => {
251251
stringArrayStorageAnalyzer = getStringArrayStorageAnalyzer({
252-
stringArrayThreshold: 0.5
252+
stringArrayThreshold: 0.5,
253+
seed: 1
253254
});
254255

255256
const astTree: ESTree.Program = NodeFactory.programNode([
@@ -266,7 +267,7 @@ describe('StringArrayStorageAnalyzer', () => {
266267
assert.deepEqual(stringArrayStorageItemData1, expectedStringArrayStorageItemData1);
267268
});
268269

269-
it('Variant #2: should return correct string array storage item data for literal node #1', () => {
270+
it('Variant #2: should return correct string array storage item data for literal node #2', () => {
270271
assert.deepEqual(stringArrayStorageItemData2, expectedStringArrayStorageItemData2);
271272
});
272273
});

0 commit comments

Comments
 (0)
0