mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-20 13:39:07 -04:00
Fixed hightlight file upload on bootstrap5 template
This commit is contained in:
parent
0ce8627561
commit
38955754f3
3 changed files with 30 additions and 2 deletions
|
@ -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;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue