import { ApiResponse } from '@japa/api-client';
export const assertAPIException = () => function () {
    ApiResponse.macro('assertAPIException', function (exception) {
        try {
            this.assertStatus(exception.status);
            this.assertBodyContains({
                errorId: exception.code,
            });
        }
        catch (e) {
            throw e;
        }
        return this;
    });
};
//# sourceMappingURL=assert_api_exception.js.map