interfake icon indicating copy to clipboard operation
interfake copied to clipboard

extends example uncorrect

Open csvwolf opened this issue 9 years ago • 0 comments

When I run the examples-javascript of extends:

https://github.com/basicallydan/interfake/blob/master/examples-javascript/fluent-extends.js

I got the result:

{
  "items": [
    {
      "id": 2,
      "name": "Item 2"
    }
  ]
}

But when I add a comma like:

postResponse.extends.get('/items').status(200).body({ items: [ ,{ id: 2, name: 'Item 2' } ] });

Then it works like the annotation. Is there something wrong with the example? I have checked the version: 1.19.0

csvwolf avatar Aug 11 '16 04:08 csvwolf