add test for search terms with +
This commit is contained in:
parent
aaa239686c
commit
6093b2a111
|
@ -11,11 +11,18 @@ describe('queryData', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('parses path for milestone with trailing +', () => {
|
it('parses path for milestone with trailing +', () => {
|
||||||
const path = 'milestone_title=A%2B';
|
|
||||||
expect(
|
expect(
|
||||||
queryData(path, {}),
|
queryData('milestone_title=A%2B', {}),
|
||||||
).toEqual({
|
).toEqual({
|
||||||
milestone_title: 'A+',
|
milestone_title: 'A+',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('parses path for search terms with spaces', () => {
|
||||||
|
expect(
|
||||||
|
queryData('search=two+words', {}),
|
||||||
|
).toEqual({
|
||||||
|
search: 'two words',
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue