Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Arrange, Act, Assert (AAA)

This example show-cases how to develop tests following the AAA pattern, by writing tests against the public API of a component. In this case we'll be testing the emitter function, as well as the on and emit methods which emitter(thing) is expected to attach on thing.

To run the tests by hand, simply execute node in your terminal, like below.

node test/emitter

test.png