doc-detective / doc-detective-core

The NPM package that powers Doc Detective's testing functionality.
https://doc-detective.com
MIT License
8 stars 2 forks source link

httpReqest response value checking should be type sensitive #148

Closed hawkeyexl closed 2 months ago

hawkeyexl commented 3 months ago

From Subin B:

Does Doc Detective check the attribute type while using responseData in HTTP requests? Or is it limited to the values? For example, if I pass an integer value as a string (with quotes) in the responseData test, does it differentiate and report an error? Doesn't seem to throw an error in my testing. Wanted to confirm if it is a bug or a known limitation/behavior.

Analysis:

Yes, the httpRequest responseData evaluation should be type-sensitive. This is a bug. 0 should not pass when "0" is expected.