From dc2daa160b7ea493ee80f3c330d8dbea9c8a7465 Mon Sep 17 00:00:00 2001 From: Oleg Date: Mon, 28 Jul 2025 11:08:31 +0300 Subject: [PATCH] fix: Fix Spiderable package tests --- packages/deprecated/spiderable/spiderable_client_tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/deprecated/spiderable/spiderable_client_tests.js b/packages/deprecated/spiderable/spiderable_client_tests.js index f21a886e6f..bcd2f2db41 100644 --- a/packages/deprecated/spiderable/spiderable_client_tests.js +++ b/packages/deprecated/spiderable/spiderable_client_tests.js @@ -39,7 +39,7 @@ Tinytest.add("spiderable - is not ready with a custom hook", function (test, exp test.equal(Spiderable._onReadyHook.size(), 2); //clear all/default callbacks - var callbacks = Spiderable._onReadyHook._asArray() + var callbacks = Spiderable._onReadyHook.asArray() Spiderable._onReadyHook.clear(); test.equal(Spiderable._onReadyHook.size(), 0); @@ -54,7 +54,7 @@ Tinytest.add("spiderable - is not ready with a custom hook", function (test, exp test.equal(Spiderable._onReadyHook.size(), 0); // restore callbacks - Spiderable._onReadyHook._fromArray(callbacks); + Spiderable._onReadyHook.fromArray(callbacks); test.equal(Spiderable._onReadyHook.size(), 2); }); @@ -62,7 +62,7 @@ Tinytest.add("spiderable - is ready with a custom hook", function (test, expect) test.equal(Spiderable._onReadyHook.size(), 2); //clear all callbacks - var callbacks = Spiderable._onReadyHook._asArray(); + var callbacks = Spiderable._onReadyHook.asArray(); Spiderable._onReadyHook.clear(); test.equal(Spiderable._onReadyHook.size(), 0); @@ -76,6 +76,6 @@ Tinytest.add("spiderable - is ready with a custom hook", function (test, expect) test.equal(Spiderable._onReadyHook.size(), 0); // restore callbacks - Spiderable._onReadyHook._fromArray(callbacks); + Spiderable._onReadyHook.fromArray(callbacks); test.equal(Spiderable._onReadyHook.size(), 2); });