Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extends example uncorrect #45

Open
csvwolf opened this issue Aug 11, 2016 · 0 comments
Open

extends example uncorrect #45

csvwolf opened this issue Aug 11, 2016 · 0 comments

Comments

@csvwolf
Copy link

csvwolf commented Aug 11, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant