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

Update 2000-01-01-working-directory.md #13610

Merged
merged 1 commit into from
Oct 5, 2015
Merged

Update 2000-01-01-working-directory.md #13610

merged 1 commit into from
Oct 5, 2015

Conversation

trungnguyen
Copy link
Contributor

I use PhantomJS to run Jasmine but at the beginning I struggled to get it works.
In my SpecRunner.html file I reference the scripts by relative paths as SpecRunner.html is also used in the context of an ASP.NET MVC project.
The relative paths must be relative to the PhatomJS working directory - and it is not clear from API documentation what the default working directory is.

I use PhantomJS to run Jasmine but at the beginning I struggled to get it works.
Finally it turns out that in the SpecRunner.html file I must reference the scripts either by absolute paths, or relative paths.
The latter is preference as SpecRunner.html is also used in the context of an ASP.NET MVC projetc
If relative paths are used they must be relative to the PhatomJS working directory - and it is not clear from API documentation what is the default working directory.
ariya added a commit that referenced this pull request Oct 5, 2015
Update 2000-01-01-working-directory.md
@ariya ariya merged commit 62e6914 into ariya:gh-pages Oct 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants