From 52aee3e5e4ff95951826de74eaa9ddc15b8e2c58 Mon Sep 17 00:00:00 2001 From: Yomes Date: Wed, 30 Mar 2022 01:23:07 +0300 Subject: [PATCH] Fix support of the lowercase response headers --- test/integration/api/admin/api_spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/api/admin/api_spec.js b/test/integration/api/admin/api_spec.js index 16c51060..ccfd58f2 100644 --- a/test/integration/api/admin/api_spec.js +++ b/test/integration/api/admin/api_spec.js @@ -602,6 +602,10 @@ describe("api", function () { expect(result.rate_limit_reset_at).to.be.an("object"); expect(result.rate_limit_reset_at).to.have.property("getDate"); expect(result.rate_limit_remaining).to.be.a("number"); + + expect(result.rate_limit_allowed).to.be.above(0); + expect(result.rate_limit_remaining).to.be.above(0); + expect(result.rate_limit_reset_at).to.be.above(0); }); }); });