Skip to content

Change output method to either accept a format function or supress logs on test environment #4

@f3liperamos

Description

@f3liperamos

image

The problem
Logger's output method ends with a console.log call.
Our only option, today, to test if it outputs correctly is to test if format is properly called.

Sugestion
Make output able to receive a custom format option, which I see as a better solution than next one.

or change output method to either return the formated/requested value and supress console.log on test environments

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions