score:2

Accepted answer

SOLVED

i used window namespace.
imported Notice component from external file

describe("cNotice", function () {
    it("lol", function () {
        var component = React.addons.TestUtils.renderIntoDocument(window.Notice({ message: "show me the message" }));
        expect(component.getDOMNode().childNodes[0].className).toBe('notice');
    });
});

Related Query

More Query from same tag