Open MynahMarie opened 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.
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.