Skip to content
This repository was archived by the owner on Sep 8, 2026. It is now read-only.
This repository was archived by the owner on Sep 8, 2026. It is now read-only.

Cannot create a DELETE request #32

Description

@louiseavelar

Hi,

We are trying to create a delete request using ember-pact-cli and mirage using the following steps:
`
let model = server.create('model', {
name: 'some model'
});

given('a model item exists', model);

let actualModel = await this.store().findRecord('model', 1);

actualModel.deleteRecord();

await interaction(function() {
actualModel.save();
});`

OR

`
let model = server.create('model', {
name: 'some model'
});

given('a model item exists', model);

let actualModel = await this.store().findRecord('model', 1);

await interaction(function() {
actualModel.destroyRecord();
});`

Everytime I run the ember tests to generate the pact file, I am getting the following error:
cannot read property 'method' of null

I've cloned this repo and added a delete test on the examples here and the same error is being thrown as well.

I was wondering if this is the correct way of creating a DELETE request or wether this could be a bug or not.

Thanks in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions