To run the unit test open pdf.js/test/unit/unit_test.html in your browser. This requires that https://github.com/pivotal/jasmine is cloned to the same directory level as pdf.js.