⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.25
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
nodejs
/
@popperjs
/
test-utils
/
Edit File: setup.js
import simulateScroll from './utils/simulateScroll'; const wrapper = document.createElement('div'); wrapper.id = 'jasmineWrapper'; document.body.appendChild(wrapper); beforeEach(function() { jasmine.addMatchers({ toBeApprox: function() { return { compare: function(actual, expected, within) { within = within || 1.5; return { pass: actual >= expected - within && actual <= expected + within, }; }, }; }, }); const reporterCurrentSpec = { specStarted: function(result) { window.testName = result.fullName; }, }; jasmine.getEnv().addReporter(reporterCurrentSpec); const jasmineWrapper = document.getElementById('jasmineWrapper'); jasmineWrapper.innerHTML = ''; simulateScroll(document.body, 0); });
Simpan