const { post, ensureOk } = require('./common');

async function run() {
  const data = await post('/api/print/text', { text: 'Test 1: texto simple', options: { feedLines: 1 } });
  console.log('01_text_simple ->', data);
  ensureOk(data, '01_text_simple');
}

if (require.main === module) {
  run().catch((e) => { console.error(e.message); process.exit(1); });
}

module.exports = run;

