canjs / can-ajax

jQuery-inspired AJAX request library.
https://canjs.com/doc/can-ajax.html
MIT License
5 stars 7 forks source link

Cross domain tests are breaking the build #48

Closed justinbmeyer closed 6 years ago

justinbmeyer commented 6 years ago

https://saucelabs.com/beta/tests/a26264dd3efc417c96257145a114a122/commands#376

The test here is breaking the build: https://github.com/canjs/can-ajax/blob/master/can-ajax-test.js#L286

ajax({
                type: "POST",
                url: "https://httpbin.org/post",
                data: {'message': 'VALUE'},
                dataType: 'application/json'
            })

Probably b/c httpbin is not working always. We need another solution ... possibly using can-fixture ...

phillipskevin commented 6 years ago

There is a makeFixture function that can be used without pulling in can-fixture:

https://github.com/canjs/can-ajax/blob/d5241b027ac2b44ec83e7014c89db2eccda72af6/can-ajax-test.js#L118-L137

Will that one not work?