Skip to content

Replace alert to console log #68

@jinolacson

Description

@jinolacson

var alert = spyOn(window, 'alert');
tester.sayName();
expect(alert).toHaveBeenCalledWith('Tester');
someoneElse.sayName();
expect(alert).toHaveBeenCalledWith('Simone Elsa');

Replace to:

var consoleLog = spyOn(console, 'log');
tester.sayName();
expect(consoleLog).toHaveBeenCalledWith('Tester');
someoneElse.sayName();
expect(consoleLog).toHaveBeenCalledWith('Simone Elsa');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions