Reviewed Additional Javascript Tests

@clarkbarz reviewed the javascript tests in pull request #128, which was requested in #127. 
resp.responseText = {message: "Object Text"}

*Rocky Meza*, Programmer
fusionbox*▝*
o: 303.952.7490

www.fusionbox.com
<http://www.fusionbox.com/?utm_source=fb%2Bemail&utm_medium=email&utm_campaign=email%2Btracking>

This information is confidential and intended solely for the use
of the individual or entity to whom it is addressed. If you have
received this email in error please notify the sender.


On Tue, Aug 26, 2014 at 11:49 AM, zmetcalf <notifications@github.com> wrote:

> In js_tests/tests/test_modal.js:
>
> > +  describe('should handle an ajaxError', function() {
> > +    var model = new Object(),
> > +        resp = {
> > +          getResponseHeader: function() { return ['application/json']; },
> > +          responseText: '"Data Test"',
> > +          status: 200
> > +        },
> > +        options = {};
> > +
> > +    it('with responseText', function() {
> > +      modal.ajaxError(model, resp, options);
> > +      assert.deepEqual($('.serverResponse').html(), 'Data Test');
> > +    });
> > +
> > +    it('with responseText Object', function() {
> > +      resp.responseText = new Object('{ "message": "Object Test" }');
>
> Do you have a better strategy to handle this case:
> https://github.com/fusionbox/django-widgy/blob/master/widgy/static/widgy/js/modal/modal.js#L57
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/fusionbox/django-widgy/pull/247/files#r16729879>.
>