1 | /* global helpDescribe, it */
|
2 | require('lazy-ass');
|
3 | require('lazy-ass-helpful');
|
4 | require('lazy-ass-helpful/lazy-ass-helpful-bdd.js');
|
5 |
|
6 | helpDescribe('escaping entered HTML chars for search', function () {
|
7 | var _ = require('lodash');
|
8 | it('uses _', function () {
|
9 | la(_.unescape('foo & bar') === 'foo & bar');
|
10 | });
|
11 |
|
12 | it('_ does not escape non breaking space', function () {
|
13 | la(_.unescape('foo bar') === 'foo bar');
|
14 | });
|
15 | });
|