Tests Two and Three Fail but Work When Tested Manually
Is anybody able to tell me why my replit isn’t passing the tests please? When I manually test them they seem to work fine but it is failing tests two and three of the challenge.
log out what is on the body and check that you are giving dns.lookup the correct argument (hostname only).
'https://boilerplate-project-urlshortener.simpson9955.repl.co/?v=1668624158297'.slice(8)
'boilerplate-project-urlshortener.simpson9955.repl.co/?v=1668624158297'
new URL('https://boilerplate-project-urlshortener.simpson9955.repl.co/?v=1668624158297').hostname
'boilerplate-project-urlshortener.simpson9955.repl.co'