Tell us what’s happening:
all the tests are passing minus the last one
-
Passed:You can provide your own project, not the example URL.
-
Passed:You should set the content security policies to only allow loading of scripts and CSS from your server.
-
Passed:You can send a
GET
request to/api/stock-prices
, passing a NASDAQ stock symbol to astock
query parameter. The returned object will contain a property namedstockData
. -
Passed:The
stockData
property includes thestock
symbol as a string, theprice
as a number, andlikes
as a number. -
Passed:You can also pass along a
like
field astrue
(boolean) to have your like added to the stock(s). Only 1 like per IP should be accepted. -
Passed:If you pass along 2 stocks, the returned value will be an array with information about both stocks. Instead of
likes
, it will displayrel_likes
(the difference between the likes on both stocks) for bothstockData
objects. -
Failed:All 5 functional tests are complete and passing.
How would I fix this issue?
###Your project link(s)
solution: boilerplate-project-stockchecker - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Challenge Information:
Information Security Projects - Stock Price Checker