mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove unnecessary console.logs
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
parent
dee2b5c66c
commit
c3c0b71ba3
@ -15,8 +15,6 @@ function getNameFromId(id: string) {
|
|||||||
function captureWithId(eventBus: EventEmitter<[AppEvent]>, id: string, action: string) {
|
function captureWithId(eventBus: EventEmitter<[AppEvent]>, id: string, action: string) {
|
||||||
const target = getNameFromId(id);
|
const target = getNameFromId(id);
|
||||||
|
|
||||||
console.log(`[captureWithId]: ${target}`);
|
|
||||||
|
|
||||||
eventBus.emit({
|
eventBus.emit({
|
||||||
name: target,
|
name: target,
|
||||||
action,
|
action,
|
||||||
|
|||||||
@ -25,7 +25,6 @@ describe("auto capture with id", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("calls event bus", () => {
|
it("calls event bus", () => {
|
||||||
console.log(capture);
|
|
||||||
capture("foo_bar-baz", "click");
|
capture("foo_bar-baz", "click");
|
||||||
expect(emitEvent).toHaveBeenCalledWith({
|
expect(emitEvent).toHaveBeenCalledWith({
|
||||||
name: "Foo Bar Baz",
|
name: "Foo Bar Baz",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user