Deletes csrf cookie test since meta tags are used now.
See commit 3c4f53da60
This commit is contained in:
Родитель
05c30bbefd
Коммит
c48e179500
|
@ -65,25 +65,6 @@ asyncTest('header sent', function() {
|
|||
});
|
||||
});
|
||||
|
||||
module('CSRF Token from cookie', {
|
||||
setup: function() {
|
||||
this._csrf = $.cookie('csrftoken');
|
||||
$.cookie('csrftoken', '<csrf-cookie>');
|
||||
},
|
||||
teardown: function() {
|
||||
$.mockjaxClear();
|
||||
if (this._csrf) {
|
||||
$.cookie('csrftoken', this._csrf);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
asyncTest('header sent', function() {
|
||||
_inspectHeaders(function(headers) {
|
||||
equals(headers['X-CSRFToken'], '<csrf-cookie>');
|
||||
});
|
||||
});
|
||||
|
||||
module('CSRF Token: remote', {
|
||||
setup: function() {
|
||||
$.cookie('csrftoken', null);
|
||||
|
|
Загрузка…
Ссылка в новой задаче