Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Ember Mirage and Component Integration Testing

$
0
0

@fatbotdesigns wrote:

Hi,

So I'm trying to test our components using ember-cli-mirage by doing something like the following:

const person = server.create('person', { 
  'first-name': 'Something,
  'last-name': 'Else',
});

This is to mock our API response. Now, our jsonapi-resource should change the properties to camel case.

Now, my question is how do I make the mirage objects have been converted to JSON API resource objects?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles