Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed JavaScript Unit Testing!
You have completed JavaScript Unit Testing!
Preview
In this video, we’ll continue writing our BDD outline for Battleship. We’ll write new test specs that correctly test when a ship is located at a given coordinate.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
does it also correctly tell us when a ship
is located at or given coordinates?
0:00
Let's write a new spec
that would prove it.
0:04
Okay, so back inside shiptest.js,
I'll just copy my current spec for
0:07
no ship present and
paste a new spec, right below it.
0:12
Then I'll adjust the description and
expectation.
0:17
So this description will say
should correctly report,
0:20
a ship located, at the given coordinates.
0:24
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up