mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
d0fa149e0e
no issue - bump eslint-plugin-ghost to v0.5.0 - update core/test eslint config to use "ghost:test" in place of custom ruleset - apply automated eslint fixes
16 lines
463 B
JavaScript
16 lines
463 B
JavaScript
var should = require('should'),
|
|
|
|
// Stuff we are testing
|
|
helpers = require('../../../frontend/helpers');
|
|
|
|
describe('{{encode}} helper', function () {
|
|
it('can escape URI', function () {
|
|
var uri = '$pecial!Charact3r(De[iver]y)Foo #Bar',
|
|
expected = '%24pecial!Charact3r(De%5Biver%5Dy)Foo%20%23Bar',
|
|
escaped = helpers.encode(uri);
|
|
|
|
should.exist(escaped);
|
|
String(escaped).should.equal(expected);
|
|
});
|
|
});
|