D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
washeet.softurecs.com
/
node_modules
/
@jimp
/
js-bmp
/
src
/
Filename :
index.node.test.ts
back
Copy
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); }); });