mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[xsrf] updated tests to check for new error message
This commit is contained in:
parent
0bd3a0f699
commit
6f19c384d5
1 changed files with 2 additions and 1 deletions
|
@ -71,6 +71,7 @@ describe('xsrf request filter', function () {
|
|||
|
||||
expect(resp.statusCode).to.be(400);
|
||||
expect(resp.headers).to.have.property(xsrfHeader, version);
|
||||
expect(resp.payload).to.match(/"Browser client is out of date/);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -110,7 +111,7 @@ describe('xsrf request filter', function () {
|
|||
});
|
||||
|
||||
expect(resp.statusCode).to.be(400);
|
||||
expect(resp.payload).to.match(/"Invalid kbn-version, expected/);
|
||||
expect(resp.payload).to.match(/"Browser client is out of date/);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue