Initial commit: Epson ePOS Node backend + Vue3 UI (printer matricial2)
This commit is contained in:
21
scripts/tests/04_batch_feeds.js
Normal file
21
scripts/tests/04_batch_feeds.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const { post, ensureOk } = require('./common');
|
||||
|
||||
async function run() {
|
||||
const data = await post('/api/print', {
|
||||
operations: [
|
||||
{ op: 'text', value: 'Test 4: linea 1' },
|
||||
{ op: 'feedLine', line: 1 },
|
||||
{ op: 'text', value: 'Test 4: linea 2' },
|
||||
{ op: 'feedLine', line: 1 }
|
||||
]
|
||||
});
|
||||
console.log('04_batch_feeds ->', data);
|
||||
ensureOk(data, '04_batch_feeds');
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
run().catch((e) => { console.error(e.message); process.exit(1); });
|
||||
}
|
||||
|
||||
module.exports = run;
|
||||
|
||||
Reference in New Issue
Block a user