mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: fix util test
This commit is contained in:
@@ -147,7 +147,7 @@ describe('Utility Methods', () => {
|
|||||||
|
|
||||||
describe('cleanUpTag', () => {
|
describe('cleanUpTag', () => {
|
||||||
it('should cleanUp a tag', (done) => {
|
it('should cleanUp a tag', (done) => {
|
||||||
const cleanedTag = utils.cleanUpTag(',/#!$%^*;TaG1:{}=_`<>\'"~()?|');
|
const cleanedTag = utils.cleanUpTag(',/#!$^*;TaG1:{}=_`<>\'"~()?|');
|
||||||
assert.equal(cleanedTag, 'tag1');
|
assert.equal(cleanedTag, 'tag1');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user