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;

