What is the proper way to send undefined as the value here in my test:
it('returns response with no content status for no data found', function (done) {
gateway.data('undefined');
...rest of code
done();
});
or should I do gateway.data(undefined);
or gateway.data("undefined");
purpose is I'm setting it to defined on purpose because my test needs to test that case in the calling function.
here's the gateway.data function:
module.exports = {
data: function(someData){
globalData = someData;
},
findAll: function(){
return globalData;
}
};