Fixed hightlight file upload on bootstrap5 template

This commit is contained in:
Ribas160 2025-07-04 18:18:00 +03:00
parent 0ce8627561
commit 38955754f3
3 changed files with 30 additions and 2 deletions

View file

@ -316,5 +316,18 @@ describe('Helper', function () {
return $.PrivateBin.Helper.formatBytes(1234567) === '1.18 MiB';
});
});
describe('isBootstrap5', function () {
jsc.property('Bootstrap 5 has been detected', function () {
global.bootstrap = {};
return $.PrivateBin.Helper.isBootstrap5() === true;
});
jsc.property('Bootstrap 5 has not been detected', function () {
delete global.bootstrap;
return $.PrivateBin.Helper.isBootstrap5() === false;
});
});
});