mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
7f1d3ebc07
- move all test files from core/test to test/ - updated all imports and other references - all code inside of core/ is then application code - tests are correctly at the root level - consistent with other repos/projects Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
15 lines
468 B
JavaScript
15 lines
468 B
JavaScript
var should = require('should'),
|
|
|
|
// Stuff we are testing
|
|
helpers = require('../../../core/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);
|
|
});
|
|
});
|