Commit 6093b2a1 authored by Simon Knox's avatar Simon Knox

add test for search terms with +

parent aaa23968
......@@ -11,11 +11,18 @@ describe('queryData', () => {
});
it('parses path for milestone with trailing +', () => {
const path = 'milestone_title=A%2B';
expect(
queryData(path, {}),
queryData('milestone_title=A%2B', {}),
).toEqual({
milestone_title: 'A+',
});
});
it('parses path for search terms with spaces', () => {
expect(
queryData('search=two+words', {}),
).toEqual({
search: 'two words',
});
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment