Hi Himasha,

Even though Jaggery test framework uses Jasmine internally, it is only for
testing backend Jaggery/JavaScript codes and not clientside codes. i.e.
jquery is used at clientside stuff and for that you should be able to
directly use Jasmine[1].

/Ruchira

[1] https://github.com/jasmine/jasmine/wiki/A-simple-project

On Wed, Jan 14, 2015 at 12:25 PM, Himasha Guruge <[email protected]> wrote:

> Hi All,
>
> I'm in the stage of testing an ES asset extension (chevron diagram editor)
> , under both publisher and store. In .specs files initially I need to use
> jquery related functions( create DOM elements) but then I'm given an error
> of  $ undefined .
>
>  With the help of Ayesha I downloaded the plugin jasmine-jquery and tried
> adding references of jquery and jasmine-jqeury in ES/modules/jaggery-test/
> module.xml.  It is still providing undefined error.I tried changing the
> order of references but still the same result.What is the jasmine version
> used in ES? According to [1] , it requires at least jasmine 2.0.
>
> Is there any other way of testing an ES extension that has jquery related
> methods?  Any insight/sample for this would be helpful.
>
>
> [1] 
> http://www.htmlgoodies.com/beyond/javascript/js-ref/testing-dom-events-using-jquery-and-jasmine-2.0.html
> <http://www.htmlgoodies.com/beyond/javascript/js-ref/testing-dom-events-using-jquery-and-jasmine-2.0.html>
>
> Thanks & Regards,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> [email protected]
>



-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com <http://wso2.com>*

*email: [email protected] <[email protected]>,   blog:
ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>,
mobile: +94 77 5493444*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to