import { moduleFor, test } from 'ember-qunit';

moduleFor('adapter:web-api', 'Unit | Adapter | web api', {
  // Specify the other units that are required for this test.
  // needs: ['serializer:foo']
});

// Replace this with your real tests.
test('it exists', function(assert) {
  var adapter = this.subject();
  assert.ok(adapter);
});

@@ -279,57 +279,527 @@
 %7B%0A  
-var adapter = this.subject();%0A  assert.ok(adapter
+let error = %7B%0A        message: 'An error has occurred',%0A        modelState: %7B%0A            'droid.Name': 'This name has already been taken'%0A        %7D%0A      %7D,%0A      adapter = this.subject(),%0A      parsed = adapter.parseErrorResponse(JSON.stringify(error)),%0A      expected = %7B%0A        errors: %5B%7B%0A          detail: 'This name has already been taken',%0A          source: %7B%0A            pointer: '/data/attributes/name'%0A          %7D,%0A          title: 'Invalid Attribute'%0A        %7D%5D%0A      %7D;%0A%0A  assert.deepEqual(parsed, expected
 );%0A%7D

Add Unit Test for parseErrorResponse