« first day (2714 days earlier)      last day (1388 days later) » 

7:23 AM
So where is the problem?
 
i have not changed it yet
Need the C++ vector equivalent of that line of code
 
 
3 hours later…
I'm trying to figure out how I mock this subscribe call in a test..

this.eventApi.subscribe('onLinkChanged', data => {
});

And this is how I'm mocking but the test always fails with " TypeError: this.eventApi.subscribe is not a function" :


Event: {
init: () => {
return {
subscribe: () => {
return {
callback: () => {
return 'LINK';
},
};
},
};
},
},
 
1 message moved from JavaScript
 
 
1 hour later…
11:56 AM
Hi

Can someone help me with this? The localstorage value says it is undefined, what am I going wrong?

const onSwipe = (direction) => {
onCardLeftScreen(direction)
};

const onCardLeftScreen = (direction, content) => {
if (direction === "right") {
localStorage.setItem("Like", JSON.stringify(content));
} else if (direction === "left") {
localStorage.setItem("Dislike", JSON.stringify(content));
}
};
 
1 message moved from JavaScript
 
 
3 hours later…
 
5 hours later…

« first day (2714 days earlier)      last day (1388 days later) »