REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 855 B
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/backend/utils/view-helpers/view-helpers.spec.js
Text
Base64
import { expect } from 'chai'; import ViewHelpers from './view-helpers.js'; describe('ViewHelpers', function () { describe('#urlBuilder', function () { it('returns joined path for default rootUrl', function () { const h = new ViewHelpers({}); expect(h.urlBuilder(['my', 'path'])).to.equal('/admin/my/path'); }); it('returns correct url when user gives admin root path not starting with /', function () { const h = new ViewHelpers({ options: { rootPath: 'admin' } }); expect(h.urlBuilder(['my', 'path'])).to.equal('/admin/my/path'); }); it('returns correct url for rootPath set to /', function () { const h = new ViewHelpers({ options: { rootPath: '/' } }); expect(h.urlBuilder(['my', 'path'])).to.equal('/my/path'); }); }); });
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
34 B
lrw-r--r--
2026-02-28 00:31:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
view-helpers.js
6.97 KB
lrw-r--r--
2026-02-28 00:31:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
view-helpers.spec.js
855 B
lrw-r--r--
2026-02-28 00:31:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).