can-fixture icon indicating copy to clipboard operation
can-fixture copied to clipboard

Passing object to fixture does not seem to catch calls to API

Open Macrofig opened this issue 9 years ago • 3 comments

Using this signature: fixture({method: 'get', url: '/api/v3/organization'}, ...) does not seem to properly capture requests to the api. (We also tried uppercase get GET, still no dice.)

Using this works, though fixture('GET /api/v3/current/organization', ... )

Macrofig avatar Aug 23 '16 16:08 Macrofig

I created a test for this in cffff6d7d1725ea0481940447879160e6b49550d and it passes. There's some context that I'm missing I think.

matthewp avatar Aug 24 '16 14:08 matthewp

@matthewp One difference is that we're using method, not type. Should we be using type instead?

Macrofig avatar Aug 24 '16 16:08 Macrofig

I think there's a bug here, I just haven't been able to recreate it in a test. method vs. type doesn't matter, i've tried both.

matthewp avatar Aug 24 '16 16:08 matthewp