destroy

  • function
 

Simulate destroying a Model on a fixture.

store.destroy(request, callback)

Parameters

  1. request {Object}

    Parameters for the request.

  2. callback {function()}

    A function to call after destruction.

store.destroy(request, response()) simulates a request to destroy an item from the server.

todosStore.destroy({
  url: "/todos/5"
}, function(){});