We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d563e77 commit c9f6ca5Copy full SHA for c9f6ca5
tests/integration/save_test.js
@@ -801,6 +801,10 @@ module('integration - Persistence', function (hooks) {
801
'Lysono Maar',
802
]);
803
804
+ server.put('/armies/1', () => {
805
+ return [400, { 'Content-Type': 'application/json' }];
806
+ });
807
+
808
await assert.rejects(army.save());
809
810
army.rollbackAttributes();
@@ -851,6 +855,10 @@ module('integration - Persistence', function (hooks) {
851
855
name.set('last', 'BadLastName');
852
856
address.set('street', 'BadStreet');
853
857
858
+ server.put('/people/1', () => {
859
860
861
854
862
await assert.rejects(mrStark.save());
863
864
mrStark.rollbackAttributes();
0 commit comments