lotus-1 / AutocompleteApp-AEL

0 stars 2 forks source link

Test is not testing the right thing #12

Open MynahMarie opened 5 years ago

MynahMarie commented 5 years ago

Your test should test your search function. I'm not sure this is what you had in mind when writing these lines:

https://github.com/lotus-1/AutocompleteApp-AEL/blob/78fa35be65ed29fbfe2ecab14275a30b1eb33c4b/src/test.js#L10-L15

It seems like you are testing something related to the user input... User input belongs to the DOM and the client. You should try and write a test for your searching function.