reservease.consumer
Version:
This package allows you to create an amqplib consumer and producer.
20 lines (19 loc) • 516 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const ApiResponse_1 = require("../ApiResponse");
const apiRes = {
code: 200,
message: 'tested',
data: [],
};
test('Api Response', () => {
expect(new ApiResponse_1.ApiResponse(200, 'tested', [])).toEqual(apiRes);
});
const apiRes2 = {
code: 200,
message: 'tested',
data: undefined,
};
test('Api Response', () => {
expect(new ApiResponse_1.ApiResponse(200, 'tested')).toEqual(apiRes2);
});