Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit ce09158

Browse files
committed
Updated test for removing image.
The post call is now changed with an ajax call, which is accurate with the updated code on commit 071e90b. All tests (53) are passing both by running `grunt test` and `testem` now.
1 parent 071e90b commit ce09158

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/images.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ asyncTest('deleting file', function () {
313313
.append('<figure><img src="image1.jpg" alt=""></figure>'+
314314
'<figure><img src="image2.jpg" alt="" class="medium-insert-image-active"></figure>');
315315

316-
this.stub(jQuery, 'post', function () {
316+
this.stub(jQuery, 'ajax', function () {
317317
ok(1, 'ajax call created');
318-
jQuery.post.restore();
318+
jQuery.ajax.restore();
319319
start();
320320
});
321321

@@ -525,4 +525,4 @@ asyncTest('file size validation', function () {
525525
files: [{ type: 'image/jpeg', size: 1001 }]
526526
});
527527
});
528-
*/
528+
*/

0 commit comments

Comments
 (0)