chore: add jimp dependency, icon padding script, and update configuration

This commit is contained in:
2026-05-31 14:04:37 +02:00
parent 30f81045ac
commit 7cd17307ba
1126 changed files with 166400 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
var test = require('tape')
var load = require('./')
var expectedArial = require('./fnt/Arial.json')
var fs = require('fs')
var http = require('http')
var arialBin = fs.readFileSync('fnt/Arial.bin')
test('should load from server URL', function (t) {
t.plan(1)
const server = http.createServer((req,res) => {
res.end(arialBin)
})
server.listen(8003, () => {
load({
url: 'http://localhost:8003',
binary: true
}, (err, res) => {
if (err) t.fail(err)
else t.deepEqual(res, expectedArial)
server.close()
})
})
})