Skip to content

extends example uncorrect #45

@csvwolf

Description

@csvwolf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions