Skip to content

Commit

Permalink
Adding missing namespace declaration to test XML.
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius committed May 14, 2018
1 parent 3e9f6d4 commit 8a965e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ describe('OpenSearchUrl', () => {

describe('serializeValues', () => {
const xml = `<os:Url
xmlns:os="http://a9.com/-/spec/opensearch/1.1/"
type="application/atom+xml"
template="http://demo.pycsw.org/cite/csw?mode=opensearch&amp;service=CSW&amp;version=3.0.0&amp;request=GetRecords&amp;elementsetname=full&amp;typenames=csw:Record&amp;resulttype=results&amp;q={searchTerms?}&amp;bbox={geo:box?}&amp;time={time:start?}/{time:end?}&amp;outputformat=application/atom+xml&amp;&amp;startposition={startIndex?}&amp;maxrecords={count?}&amp;recordids={geo:uid}"/>`;
const url = OpenSearchUrl.fromNode(parseXml(xml).documentElement);
Expand Down

0 comments on commit 8a965e8

Please sign in to comment.