owillo / jquery-formatcurrency

Automatically exported from code.google.com/p/jquery-formatcurrency
GNU General Public License v3.0
0 stars 0 forks source link

exports is not defined #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
exports is not defined
[Break On This Error]   

extend(exports, QUnit);

What steps will reproduce the problem?
1. Run qunit in an amd module based on require js

What is the expected output? What do you see instead?
N/A

What version of the product are you using? On what operating system?
qunit 1.5, firefox 10, Chrome 18

Please provide any additional information below.
In my special case we are using qunit to test dojo toolkit components.

I think this is more of a general problem with the detection of environment, 
since you test for typeof require === "undefined", which would be false in case 
of requirejs/dojo, still requirejs/dojo does not define an exports object.

This test is causing the error to occur:
define(
    [ ],
    function () {
        test("Test", function(){
            equal(1, 1);
        });

    }
);

Original issue reported on code.google.com by tommys...@gmail.com on 21 May 2012 at 11:02

GoogleCodeExporter commented 8 years ago
Sorry seems like i posted this to the wrong forum:)
Please close the issue and I will post it to the correct project 

Original comment by tommys...@gmail.com on 21 May 2012 at 11:19