Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Jun 24, 2020
1 parent 2143ca4 commit aecb37b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 8 additions & 0 deletions examples/v3/e2e/data/data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<animals>
<goat first_name="Billy" last_name="Goat" animal="goat" age="21" available_from="2017-12-04T14:47:18.582Z" gender="M" location="[object Object]" eligibility="[object Object]" interests="walks in the garden/meadow,munching on a paddock bomb,parkour" id="1" />
<goat first_name="Nanny" animal="goat" last_name="Doe" age="27" available_from="2017-12-04T14:47:18.582Z" gender="F" location="[object Object]" eligibility="[object Object]" interests="walks in the garden/meadow,parkour" id="2" />
<lion first_name="Simba" last_name="Cantwaittobeking" animal="lion" age="4" available_from="2017-12-04T14:47:18.582Z" gender="M" location="[object Object]" eligibility="[object Object]" interests="walks in the garden/meadow,parkour" id="3" />
<goat first_name="Billy" last_name="Goat" animal="goat" age="21" available_from="2017-12-04T14:47:18.582Z" gender="M" location="[object Object]" eligibility="[object Object]" interests="walks in the garden/meadow,munching on a paddock bomb,parkour" id="1" />
<goat first_name="Nanny" animal="goat" last_name="Doe" age="27" available_from="2017-12-04T14:47:18.582Z" gender="F" location="[object Object]" eligibility="[object Object]" interests="walks in the garden/meadow,parkour" id="2" />
<lion first_name="Simba" last_name="Cantwaittobeking" animal="lion" age="4" available_from="2017-12-04T14:47:18.582Z" gender="M" location="[object Object]" eligibility="[object Object]" interests="walks in the garden/meadow,parkour" id="3" />
</animals>
12 changes: 7 additions & 5 deletions examples/v3/e2e/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ server.get("/animals/available", (req, res) => {
// Get all available animals as XML
server.get("/animals/available/xml", (req, res) => {
res.header("Content-Type", "application/xml; charset=utf-8")
let xml_body = xml({animals: animalRepository.fetchAll().map(animal => {
let result = {}
result[animal.animal] = { _attr: animal }
return result
})})
let xml_body = xml({
animals: animalRepository.fetchAll().map(animal => {
let result = {}
result[animal.animal] = { _attr: animal }
return result
}),
})
res.end(xml_body)
})

Expand Down

0 comments on commit aecb37b

Please sign in to comment.