Click here to Skip to main content
15,921,884 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: How to Reference a local image file to display it Pin
Tom Mort1-Jan-24 14:24
Tom Mort1-Jan-24 14:24 
GeneralRe: How to Reference a local image file to display it Pin
jkirkerx1-Jan-24 17:32
professionaljkirkerx1-Jan-24 17:32 
GeneralRe: How to Reference a local image file to display it Pin
DALLAS SENSIE8-Apr-24 15:45
DALLAS SENSIE8-Apr-24 15:45 
GeneralRe: How to Reference a local image file to display it Pin
tena lena8-Jun-24 11:05
tena lena8-Jun-24 11:05 
Questiondrop down list and submit button Pin
prasad penkey4-Dec-23 2:33
prasad penkey4-Dec-23 2:33 
AnswerRe: drop down list and submit button Pin
Richard MacCutchan4-Dec-23 3:08
mveRichard MacCutchan4-Dec-23 3:08 
AnswerRe: drop down list and submit button Pin
Andre Oosthuizen5-Dec-23 8:50
mveAndre Oosthuizen5-Dec-23 8:50 
GeneralRe: drop down list and submit button Pin
Richard Deeming5-Dec-23 22:05
mveRichard Deeming5-Dec-23 22:05 
GeneralRe: drop down list and submit button Pin
Andre Oosthuizen6-Dec-23 7:05
mveAndre Oosthuizen6-Dec-23 7:05 
Questiondropdown Pin
prasad penkey4-Dec-23 1:39
prasad penkey4-Dec-23 1:39 
AnswerRe: dropdown Pin
Richard Deeming4-Dec-23 1:45
mveRichard Deeming4-Dec-23 1:45 
AnswerRe: dropdown Pin
Andre Oosthuizen11-Dec-23 7:27
mveAndre Oosthuizen11-Dec-23 7:27 
Questionjavascript alert() not showing Pin
Ashish Tiwari Aug20233-Dec-23 6:00
Ashish Tiwari Aug20233-Dec-23 6:00 
AnswerRe: javascript alert() not showing Pin
Dave Kreskowiak3-Dec-23 9:07
mveDave Kreskowiak3-Dec-23 9:07 
QuestionInserting HTML from a fetch gives me extra blank rows..? Pin
William Morris 202124-Oct-23 18:58
William Morris 202124-Oct-23 18:58 
AnswerRe: Inserting HTML from a fetch gives me extra blank rows..? Pin
enhzflep27-Oct-23 23:00
enhzflep27-Oct-23 23:00 
AnswerRe: Inserting HTML from a fetch gives me extra blank rows..? Pin
Richard Deeming29-Oct-23 23:16
mveRichard Deeming29-Oct-23 23:16 
GeneralRe: Inserting HTML from a fetch gives me extra blank rows..? Pin
Richard MacCutchan30-Oct-23 0:53
mveRichard MacCutchan30-Oct-23 0:53 
QuestionInserting HTML from a fetch gives me extra blank rows..? Pin
William Morris 202124-Oct-23 8:31
William Morris 202124-Oct-23 8:31 
QuestionMoving a <div> from right edge of screen to left slowly? Pin
Blake McKenna27-Sep-23 17:51
Blake McKenna27-Sep-23 17:51 
AnswerRe: Moving a <div> from right edge of screen to left slowly? Pin
Steve Raw21-Oct-23 17:39
professionalSteve Raw21-Oct-23 17:39 
QuestionJasmine - monitor all calls of a method? Pin
NoMoreStackOverflow22-Sep-23 0:25
NoMoreStackOverflow22-Sep-23 0:25 
AnswerRe: Jasmine - monitor all calls of a method? Pin
jschell23-Sep-23 14:25
jschell23-Sep-23 14:25 
GeneralRe: Jasmine - monitor all calls of a method? Pin
NoMoreStackOverflow23-Sep-23 20:33
NoMoreStackOverflow23-Sep-23 20:33 
AnswerRe: Jasmine - monitor all calls of a method? Pin
jschell25-Sep-23 8:10
jschell25-Sep-23 8:10 
NoMoreStackOverflow wrote:
that a tested method does not make other calls than the monitored


Looking at that again and based on your other response....

No I doubt that exists. I have no idea how a test framework would even implement that. It would at a minimum require that the test code would have to specify every call that the code would make.

Only reasonable way I could even think that part would work is that every single method call would need to be mocked. Because otherwise a call to another class could then call to another method that was not tracked.

Additionally I suspect that maintaining it would be a maintenance nightmare.

A unit test should test that the method works. Not how the method implemented the solution.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.