Initial commit: Epson ePOS Node backend + Vue3 UI (printer matricial2)
This commit is contained in:
17
scripts/tests/03_font_size.js
Normal file
17
scripts/tests/03_font_size.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const { post, ensureOk } = require('./common');
|
||||
|
||||
async function run() {
|
||||
const data = await post('/api/print/text', {
|
||||
text: 'Test 3: font_b w2 h2',
|
||||
options: { font: 'font_b', size: { width: 2, height: 2 }, style: { em: true }, feedLines: 1 }
|
||||
});
|
||||
console.log('03_font_size ->', data);
|
||||
ensureOk(data, '03_font_size');
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
run().catch((e) => { console.error(e.message); process.exit(1); });
|
||||
}
|
||||
|
||||
module.exports = run;
|
||||
|
||||
Reference in New Issue
Block a user