الأربعاء، 28 أغسطس 2013

ReferenceError: Can't find variable: define (Phantomjs + requirejs) : Qunit

By Unknown   Posted at  12:36 ص   jQuery Forum No comments



Hello,

We have implemented the Qunit for unit testing for our js script and using Backbone Aura as the framework.Test cases are executed and result are show in the browser.

I am getting the error "ReferenceError: Can't find variable: define" when running the test case on a single component .By running the below command in headless mode using phantomjs :


phantomjs main.js http:\ localhost:9032\index.html


I understand that its not able to resolve the dependencies in require.js .But how can I solve this. Please help me in solving this issue.


Thanks in Advance.








via jQuery Forum http://forum.jquery.com/topic/referenceerror-can-t-find-variable-define-phantomjs-requirejs-qunit#14737000004535018

Related Posts

About the Author

Nulla sagittis convallis arcu. Sed sed nunc. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.
View all posts by: BT9

0 التعليقات:

Back to top ↑
Connect with Us

© 2013 jQuery Forum. WP Mythemeshop Converted by Bloggertheme9
Blogger templates. Proudly Powered by Blogger.