UNPKG

fide-ratings-scraper

Version:
13 lines (11 loc) 443 B
const ERRORS = require("../src/errors"); describe("Validate error types", () => { it("should feature error code and description", () => { expect(Object.values(ERRORS).length).toBe(6); Object.values(ERRORS).forEach(({ code, description }) => { expect(typeof code).toBe("number"); expect(typeof description).toBe("string"); expect(description.length).not.toBe(0); }); }); });