busterjs/buster — Issue #68: Syntax checks performed on none-javascript resources
Author: augustl
Created: 2012-02-15 09:27:17+00:00
State: open

With this config file:

module.exports["Tests"] = {
resources: [
{path: "/ping", content: '{"ping":"pong"}'}
]
}

I get the following when running "buster test":

[FATAL] Syntax error in /ping:
/ping:1:8
{"ping":"pong"}
^
Unexpected token: punc (:)

[FATAL] Syntax error in /ping:
/ping:1:8
{"ping":"pong"}
^
Unexpected token: punc (:)

[FATAL] Syntax error in /ping:
/ping:1:8
{"ping":"pong"}
^
Unexpected token: punc (:)

[FATAL] Syntax error in /ping:
/ping:1:8
{"ping":"pong"}
^
Unexpected token: punc (:)