In beforeEach() method, I'm adding content to body element. I'm
executing my javascript codes - it holds some states. On next
execution, same content and same javascript states still there. When I
introduced with Jasmine, I taught that the jasmine template (js
libraries ext.) is reloaded on every spec execution.
If jasmine doesn't support this, as you said I need to write method to
reset current state.
thanks
On Mar 14, 9:54 pm, Aaron McLeod <
sircoolgu...@gmail.com> wrote:
> If this definition is being done in a beforeEach(), then you can simply use an afterEach() to clean it up. What kind of definition are you adding exactly?
>
> --
> Aaron McLeodhttp://
agmprojects.com
>
>
>
>
>
>
>
> On Wednesday, 14 March, 2012 at 4:14 AM, Taner Diler wrote:
> > Hi all,
>
> > Jasmine is a good tool to test javascripts. Thanks.
>
> > I want to learn that there is a way to refresh document on each spec
> > execution. When I add a definition to document head on previous spec
> > execution, the definition is still there on next spec execution.
>
> > --
> > You received this message because you are subscribed to the Google Groups "Jasmine" group.
> > To post to this group, send email to
jasmi...@googlegroups.com (mailto:
jasmi...@googlegroups.com).
> > To unsubscribe from this group, send email to
jasmine-js+...@googlegroups.com (mailto:
jasmine-js+...@googlegroups.com).