Working with the New Notifications
Let’s learn to test out our notifications before proceeding to write more tests.
We'll cover the following...
To review, rather than jumping straight into our tests with sleeps and timing dependent code, we built a quick feature that our tests can use. Other programs can take advantage of notifications too. Let’s test that theory with the iex
program. We’ll fire it up with iex -S mix
.
Alias
Then, type the following:
Executable
Press + to interact
alias Mastery.Examples.Math
Output
iex(1)> alias Mastery.Examples.Math
Mastery.Examples.Math
We alias the Math
example to use those fields to create our quiz and templates. ...