mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: subfolder in category link
This commit is contained in:
@@ -107,7 +107,7 @@ describe('helpers', () => {
|
||||
imageClass: 'auto',
|
||||
name: 'Category 1',
|
||||
}, 'a', ''),
|
||||
`<a href="/category/undefined" class="badge px-1 text-truncate text-decoration-none " style="color: #00ff00;background-color: #ff0000;border-color: #ff0000!important; max-width: 70vw;">\n\t\t\t\n\t\t\tCategory 1\n\t\t</a>`
|
||||
`<a href="${nconf.get('relative_path')}/category/undefined" class="badge px-1 text-truncate text-decoration-none " style="color: #00ff00;background-color: #ff0000;border-color: #ff0000!important; max-width: 70vw;">\n\t\t\t\n\t\t\tCategory 1\n\t\t</a>`
|
||||
);
|
||||
assert.strictEqual(
|
||||
helpers.buildCategoryLabel({
|
||||
|
||||
Reference in New Issue
Block a user