[xsrf] updated tests to check for new error message

This commit is contained in:
spalger 2015-12-09 11:57:07 -07:00
parent 0bd3a0f699
commit 6f19c384d5

View file

@ -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/);
});
});
}