%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/api.rezakurnia.com/zh-router/node_modules/@jimp/js-bmp/src/
Upload File :
Create Path :
Current File : /home2/rezakur1/api.rezakurnia.com/zh-router/node_modules/@jimp/js-bmp/src/index.node.test.ts

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);
  });
});

Zerion Mini Shell 1.0