arunoda / laika

testing framework for meteor
http://arunoda.github.io/laika/
MIT License
242 stars 38 forks source link

Unexpected end of input in node modules #129

Open ScOut3R opened 10 years ago

ScOut3R commented 10 years ago

Hi there,

i'm newbie with meteor and i'm just trying out laika but having an issue running it.

Here's the simple test code i'm trying to run:

var assert = require('assert');

suite('Books', function () {
    test('in the server', function (done, server) {

        server.eval(function () {
            Books.insert({ title: 'Test Book 1'});
            var docs = Books.find().fetch();
            emit('docs', docs);
        });

        server.once('docs', function (docs) {
            assert.equal(docs.length, 1);
            done();
        });
    });
});

And here's laika's output:

laika -V
[laika log] accepting the following extensions: (js)

  injecting laika...
  loading phantomjs...
[app touch log] 
[app touch log] Stand back while Meteorite does its thing
[app touch log] 
Done installing smart packages
[app touch log] 
Ok, everything's ready. Here comes Meteor!

[app touch log] [[[[[ ~/BTSync/meteor/wheresmybook ]]]]]

[app touch log] => Started proxy.
[app touch log] node_modules/laika/node_modules/mocha/mocha.css: warn: @charset rules in this file will be ignored as UTF-8 is the only encoding supported
[app touch log] => Errors prevented startup:

While building the application:
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/json3/coverage/lcov-report/lib/json3.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-parser/node_modules/json3/coverage/lcov-report/lib/json3.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/socket.io-client/lib/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/socket.io-client/lib/index.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/socket.io-client/lib/manager.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/socket.io-client/lib/on.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/socket.io-client/lib/socket.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/socket.io-client/lib/url.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/lib/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/lib/url.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/mocha/lib/reporters/templates/script.html:1: bad formatting in HTML template
node_modules/laika/node_modules/mocha/lib/reporters/templates/style.html:1: bad formatting in HTML template
node_modules/laika/node_modules/mocha/lib/template.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/utf8/coverage/utf8.js/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/utf8/coverage/utf8.js/utf8.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/utf8/coverage/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/node_modules/global/test/index.html:1: bad formatting in HTML template
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/examples/fileapi/public/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/examples/serverstats-express_3/public/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/examples/serverstats/public/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/coverage/utf8.js/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/coverage/utf8.js/utf8.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/coverage/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/engine.io/node_modules/ws/examples/fileapi/public/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/engine.io/node_modules/ws/examples/serverstats-express_3/public/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/engine.io/node_modules/ws/examples/serverstats/public/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/engine.io/node_modules/debug/example/browser.html:1: bad formatting in HTML template
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/socket.io-client/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/socket.io-client/index.js.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/node-phantom/node_modules/socket.io/node_modules/socket.io-client/coverage/lcov-report/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/mocha/test/browser/index.html:1: bad formatting in HTML template
node_modules/laika/node_modules/mocha/test/browser/large.html:1: bad formatting in HTML template
node_modules/laika/node_modules/mocha/test/browser/opts.html:1: bad formatting in HTML template
node_modules/laika/node_modules/colors/example.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/laika/node_modules/handlebars/lib/handlebars/browser-prefix.js:5:3: Unexpected end of input
node_modules/laika/node_modules/handlebars/lib/handlebars/browser-suffix.js:3:1: Unexpected token }
node_modules/laika/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/run-tests.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/test/_/argv.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/test/_/bin.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-12.js:9:29: Unexpected token )
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/bool.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/boolean_double.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/boolean_single.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/default_hash.js:1:15: Unexpected token ILLE[app touch log] GAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/default_singles.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/divide.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/line_count.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/line_count_options.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/line_count_wrap.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/nonopt.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/reflect.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/short.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/string.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/optimist/example/xup.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/handlebars/node_modules/uglify-js/test/run-tests.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/mocha/support/foot.js:2:1: Unexpected token }
node_modules/laika/node_modules/mocha/support/head.js:3:3: Unexpected end of input
node_modules/laika/node_modules/fibers/build.js:1:15: Unexpected token ILLEGAL
node_modules/laika/node_modules/fibers/test.js:1:15: Unexpected token ILLEGAL

=> Your application has errors. Waiting for file change.

As you can see the test is almost the same as the very first example in the docs so i haven't wandered far before hitting this problem. I'd really appreciate any help. Thanks!

Mate