UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

13 lines (11 loc) 429 B
import { v4 } from 'uuid'; import { TransactionResponseEventDto } from './transactionResponseEventDto'; describe('TransactionResponseEventDto test suite', () => { it('should be able to create TransactionResponseEventDto instance', () => { const id = v4(); const iso8583 = v4(); const dto = new TransactionResponseEventDto(id, iso8583); expect(dto.id).toBe(id); expect(dto.iso8583).toBe(iso8583); }); });