generated from nhcarrigan/template
feat: cleanup
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Codeberg } from "../../src/icons/Codeberg";
|
||||
|
||||
describe("codeberg icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Codeberg.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Codeberg.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Codeberg.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Codeberg.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Codeberg.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Coursera } from "../../src/icons/Coursera";
|
||||
|
||||
describe("coursera icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Coursera.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Coursera.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Coursera.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Coursera.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Coursera.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Fiverr } from "../../src/icons/Fiverr";
|
||||
|
||||
describe("fiverr icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Fiverr.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Fiverr.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Fiverr.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Fiverr.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Fiverr.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Gather } from "../../src/icons/Gather";
|
||||
|
||||
describe("gather icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gather.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gather.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gather.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gather.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gather.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Gog } from "../../src/icons/Gog";
|
||||
|
||||
describe("gog icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gog.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gog.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gog.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gog.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gog.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Gumroad } from "../../src/icons/Gumroad";
|
||||
|
||||
describe("gumroad icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gumroad.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gumroad.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gumroad.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gumroad.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Gumroad.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Kofi } from "../../src/icons/KoFi";
|
||||
|
||||
describe("kofi icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Kofi.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Kofi.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Kofi.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Kofi.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Kofi.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Matrix } from "../../src/icons/Matrix";
|
||||
|
||||
describe("matrix icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Matrix.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Matrix.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Matrix.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Matrix.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Matrix.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Peerlist } from "../../src/icons/Peerlist";
|
||||
|
||||
describe("peerlist icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Peerlist.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Peerlist.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Peerlist.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Peerlist.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Peerlist.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Pixiv } from "../../src/icons/Pixiv";
|
||||
|
||||
describe("pixiv icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Pixiv.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Pixiv.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Pixiv.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Pixiv.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Pixiv.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Polywork } from "../../src/icons/Polywork";
|
||||
|
||||
describe("polywork icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Polywork.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Polywork.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Polywork.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Polywork.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Polywork.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,39 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { RetroAchievements } from "../../src/icons/RetroAchievements";
|
||||
|
||||
describe("retroachievements icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(RetroAchievements.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(RetroAchievements.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(RetroAchievements.icon[2], "ligatures are present").
|
||||
toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(RetroAchievements.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(RetroAchievements.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Saylor } from "../../src/icons/Saylor";
|
||||
|
||||
describe("saylor icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Saylor.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Saylor.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Saylor.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Saylor.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Saylor.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { TeeSpring } from "../../src/icons/TeeSpring";
|
||||
|
||||
describe("teespring icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(TeeSpring.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(TeeSpring.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(TeeSpring.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(TeeSpring.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(TeeSpring.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Throne } from "../../src/icons/Throne";
|
||||
|
||||
describe("throne icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Throne.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Throne.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Throne.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Throne.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Throne.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Topmate } from "../../src/icons/Topmate";
|
||||
|
||||
describe("topmate icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Topmate.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Topmate.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Topmate.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Topmate.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Topmate.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { TreeNation } from "../../src/icons/TreeNation";
|
||||
|
||||
describe("treenation icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(TreeNation.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(TreeNation.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(TreeNation.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(TreeNation.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(TreeNation.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { Udemy } from "../../src/icons/Udemy";
|
||||
|
||||
describe("udemy icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(Udemy.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(Udemy.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(Udemy.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(Udemy.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(Udemy.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { VRoid } from "../../src/icons/VRoid";
|
||||
|
||||
describe("vroid icon", () => {
|
||||
it("should have a valid width", () => {
|
||||
expect.assertions(1);
|
||||
expect(VRoid.icon[0], "width is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should have a valid height", () => {
|
||||
expect.assertions(1);
|
||||
expect(VRoid.icon[1], "height is negative").toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("should not have any ligatures", () => {
|
||||
expect.assertions(1);
|
||||
expect(VRoid.icon[2], "ligatures are present").toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("should have a valid unicode set", () => {
|
||||
expect.assertions(1);
|
||||
expect(VRoid.icon[3], "unicode set is wrong").toBe("U+E002");
|
||||
});
|
||||
|
||||
it("should have valid SVG path data", () => {
|
||||
expect.assertions(1);
|
||||
expect(VRoid.icon[4], "path data is bad").toMatch(
|
||||
// eslint-disable-next-line stylistic/max-len
|
||||
/(?:[lm]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:[hv]\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))|(?:c\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){5})|(?:q\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3}(?:\s?t?\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+)))*)|(?:a\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2}[\s,]?(?:[01][\s,]+){2}(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){2})|(?:s\s?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))(?:[\s,]?-?(?:(?:\d+(?:\.\d+)?)|(?:\.\d+))){3})|z/gi,
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user