tildeio / htmlbars

A variant of Handlebars that emits DOM and allows you to write helpers that manipulate live DOM nodes
MIT License
1.61k stars 193 forks source link

tests #431

Open BenjaminHorn opened 8 years ago

BenjaminHorn commented 8 years ago

The readme suggest 3 ways to run tests:

Via Ember CLI

Run: ember test --server Ember CLI is a CI tool, so it will run tests as you change files.

On the console with PhantomJS

Run npm test.

In a browser

Run npm start. Visit http://localhost:4200/tests/.

I have tried the last one. After running npm start and open the browser I got error messages in the console:

tests.:6 GET http://localhost:4200/qunit.css tests.:11 GET http://localhost:4200/qunit.js tests.:12 GET http://localhost:4200/testem.js tests.:14 GET http://localhost:4200/packages-config.js tests.:15 GET http://localhost:4200/export-test-results.js tests.:18 Uncaught ReferenceError: QUnit is not defined

What is the recommended way to debug this project? I made some console.log statements to see what is going on in the code. Ember CLI recognized the file change, but I'm getting:

file changed parser/tokenizer-event-handlers.js

htmlbars-tests/htmlbars-syntax/parser/tokenizer-event-handlers.js: line 126, col 5, 'console' is not defined.