mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
Deprecate non-standard String.prototype.rtrim
This commit is contained in:
@@ -171,4 +171,11 @@ describe('Utility Methods', function () {
|
||||
}
|
||||
done();
|
||||
});
|
||||
|
||||
it('`utils.rtrim` should remove trailing space', function (done) {
|
||||
assert.strictEqual(utils.rtrim(' thing '), ' thing');
|
||||
assert.strictEqual(utils.rtrim('\tthing\t\t'), '\tthing');
|
||||
assert.strictEqual(utils.rtrim('\t thing \t'), '\t thing');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user