augmenttoolkit / node_modules /@jimp /js-bmp /src /index.node.test.ts
Leon4gr45's picture
Include updated package-lock.json (part 8)
3530df7 verified
Raw
History Blame Contribute Delete
561 Bytes
import { describe, expect, test } from "vitest";
import { createJimp } from "@jimp/core";
import { getTestImagePath } from "@jimp/test-utils";
import png from "@jimp/js-png";
import bmp from "./index.js";
const jimp = createJimp({ formats: [bmp, png] });
describe("BMP", () => {
test("uses correct colors for BMP", async function () {
const expectedImg = await jimp.read(getTestImagePath("windows95.png"));
const image = await jimp.read(getTestImagePath("windows95.bmp"));
expect(image.bitmap.data).toEqual(expectedImg.bitmap.data);
});
});