<commit_before>import { expect } from "chai";
import * as skinview3d from "../src/skinview3d";

import skin1_8Default from "./textures/skin-1.8-default-no_hd.png";
import skin1_8Slim from "./textures/skin-1.8-slim-no_hd.png";
import skinOldDefault from "./textures/skin-old-default-no_hd.png";

describe("detect model of texture", () => {
	it("1.8 default", async () => {
		const image = document.createElement("img");
		image.src = skin1_8Default;
		await Promise.resolve();
		expect(skinview3d.isSlimSkin(image)).to.equal(false);
	});

	it("1.8 slim", async () => {
		const image = document.createElement("img");
		image.src = skin1_8Slim;
		await Promise.resolve();
		expect(skinview3d.isSlimSkin(image)).to.equal(true);
	});

	it("old default", async () => {
		const image = document.createElement("img");
		image.src = skinOldDefault;
		await Promise.resolve();
		expect(skinview3d.isSlimSkin(image)).to.equal(false);
	});
});<commit_msg>Add refrence to the shim so VSCode does not throw errors<commit_after>/// <reference path="shims.d.ts"/>

import { expect } from "chai";
import * as skinview3d from "../src/skinview3d";

import skin1_8Default from "./textures/skin-1.8-default-no_hd.png";
import skin1_8Slim from "./textures/skin-1.8-slim-no_hd.png";
import skinOldDefault from "./textures/skin-old-default-no_hd.png";
import skinLegacyHatDefault from "./textures/skin-legacyhat-default-no_hd.png";

describe("detect model of texture", () => {
	it("1.8 default", async () => {
		const image = document.createElement("img");
		image.src = skin1_8Default;
		await Promise.resolve();
		expect(skinview3d.isSlimSkin(image)).to.equal(false);
	});

	it("1.8 slim", async () => {
		const image = document.createElement("img");
		image.src = skin1_8Slim;
		await Promise.resolve();
		expect(skinview3d.isSlimSkin(image)).to.equal(true);
	});

	it("old default", async () => {
		const image = document.createElement("img");
		image.src = skinOldDefault;
		await Promise.resolve();
		expect(skinview3d.isSlimSkin(image)).to.equal(false);
	});

	/* TODO: implement transparent hat check for 64x32 skins
	it("legacy hat test", async () => {
		const image = document.createElement("img");
		image.src = skinLegacyHatDefault;
		await Promise.resolve();

	});
	*/
});
{'fraction_non_alphanumeric': 0.17337461300309598, 'fraction_numerical': 0.020344980097302078, 'mean_word_length': 4.626865671641791, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '449885', 'n_tokens_mistral': 817, 'n_tokens_neox': 784, 'n_words': 152}