it('deletes the first order using the delete action', () => {
provider
+
+ // Get Root Request
.uponReceiving("get root")
.withRequest({
path: "/",
links:[{"rel":["orders"], "href": url("http://localhost:9000", ["orders"]) }]
}
})
+
+ // Get Orders Request
.uponReceiving("get all orders")
.withRequest({
path: "/orders",
]
}
})
+
+ // Delete Order Request
.uponReceiving("delete order")
.withRequest({
method: "DELETE",