Initial commit: Epson ePOS Node backend + Vue3 UI (printer matricial2)
This commit is contained in:
14
scripts/tests/02_align_cut.js
Normal file
14
scripts/tests/02_align_cut.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const { post, ensureOk } = require('./common');
|
||||
|
||||
async function run() {
|
||||
const data = await post('/api/print/text', { text: 'Test 2: center + cut', options: { align: 'center', feedLines: 1, cut: 'feed' } });
|
||||
console.log('02_align_cut ->', data);
|
||||
ensureOk(data, '02_align_cut');
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
run().catch((e) => { console.error(e.message); process.exit(1); });
|
||||
}
|
||||
|
||||
module.exports = run;
|
||||
|
||||
Reference in New Issue
Block a user