lecture 9 of 150 completed

Checks that actually catch bugs

A weak check passes on a broken app. Here are the three weak checks you will write without noticing.

What you'll learn

  • The three weak checks that pass on a broken app
  • How to assert the value a user depends on
  • How to name the bug a check would catch

You already know that a test with no check proves nothing. At this level the problem is different. Your test has checks, they pass, and the app is still broken.

Let's look at the three weak checks that get through code review every day.

Weak check 1: you check that something is there, not what it says.

members only

Keep reading with the full course

The Foundations track and the first 5 lectures of each framework are free. This lecture is part of the paid course, which unlocks every lecture, all three frameworks, and downloads.

See the options →