REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 570 B
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/png-js/test/imgdata.spec.js
Text
Base64
const PNGNode = require('../png-node'); const fs = require('fs'); const files = fs.readdirSync('test/images'); function getImgData(Ctor, fileName) { const image = new Ctor(fs.readFileSync(`test/images/${fileName}`)); return image.imgData; } describe('imgData', () => { describe('node', () => { test.each(files)('%s', fileName => { expect(getImgData(PNGNode, fileName)).toMatchSnapshot(); }); }); describe('browser', () => { test.each(files)('%s', fileName => { expect(getImgData(PNG, fileName)).toMatchSnapshot(); }); }); });
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
images
DIR
-
drwxr-xr-x
2026-02-14 19:20:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__snapshots__
DIR
-
drwxr-xr-x
2026-02-14 19:21:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imgdata.spec.js
570 B
lrw-r--r--
2026-02-14 19:19:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
metadata.spec.js
617 B
lrw-r--r--
2026-02-14 19:19:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
patch-canvas.js
56 B
lrw-r--r--
2026-02-14 19:19:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pixels.spec.js
766 B
lrw-r--r--
2026-02-14 19:19:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).