-
Notifications
You must be signed in to change notification settings - Fork 13
Description
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.