Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Loading error with Play 2.1 from Rhino #2

Open
mresposito opened this issue Aug 18, 2013 · 4 comments
Open

Loading error with Play 2.1 from Rhino #2

mresposito opened this issue Aug 18, 2013 · 4 comments

Comments

@mresposito
Copy link

Whenever I try to run some tests, I get:

[info] running jasmine...
See https://github.com/jrburke/r.js for usage.
[ Envjs/1.6 (Rhino; U; Mac OS X x86_64 10.8.3; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13 ]
error org.mozilla.javascript.EcmaError: TypeError: Cannot call method "sort" of null (spanDir/spanDir.js#13)
[error] Total time: 2 s, completed Aug 19, 2013 1:46:36 AM

do you know what is going wrong? Thank you!

@seandc
Copy link

seandc commented Oct 13, 2013

I get the exact same error. Did you ever figure this out?

@mresposito
Copy link
Author

Yeah its a swollen exception. It means that you are calling your script on some directory that doesn't exists.

@lcamilo15
Copy link

I was getting the same problem

EnvJasmine.mocksDir = EnvJasmine.normalizePath(EnvJasmine.testDir + "mocks/");
EnvJasmine.specsDir = EnvJasmine.normalizePath(EnvJasmine.testDir + "specs/");

Make sure the following two folders exist in your EnvJasmine.testDir directory :

  • specs
  • mocks

@ialekseev
Copy link

lcamilo15, thanks, adding specs & mocks folders has helped

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants