mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[chrome/xsrf] added test for getXsrfToken method
This commit is contained in:
parent
7eefb183e1
commit
3966e2ea44
1 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,14 @@ const xsrfHeader = 'kbn-xsrf-token';
|
|||
const xsrfToken = 'xsrfToken';
|
||||
|
||||
describe('chrome xsrf apis', function () {
|
||||
describe('#getXsrfToken()', function () {
|
||||
it('exposes the token', function () {
|
||||
const chrome = {};
|
||||
xsrfChromeApi(chrome, { xsrfToken });
|
||||
expect(chrome.getXsrfToken()).to.be(xsrfToken);
|
||||
});
|
||||
});
|
||||
|
||||
context('jQuery support', function () {
|
||||
it('adds a global jQuery prefilter', function () {
|
||||
stub($, 'ajaxPrefilter');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue