import Model from '../../src/Model' import InMemory from '../../src/connection/InMemory' import Printer from '../../src/Printer' import { load } from '../helper' describe('diebold model profile', () => { it('emit buzzer from model TSP-143', () => { const connection = new InMemory() const printer = new Printer(new Model('TSP-143'), connection) printer.buzzer() expect(connection.buffer()).toStrictEqual(load('tsp-143_buzzer', connection.buffer())) }) it('activate drawer from model TSP-143', () => { const connection = new InMemory() const printer = new Printer(new Model('TSP-143'), connection) printer.drawer() expect(connection.buffer()).toStrictEqual(load('tsp-143_drawer', connection.buffer())) }) })