I have a test that was auto generated with the Ember cli, however I'm getting an error: http://localhost:7357/assets/test-support.js:3711: No model was found for ' user'
import {
moduleForModel,
test
} from 'ember-qunit';
moduleForModel('user', {
// Specify the other units that are required for this test.
needs: []
});
test('it exists', function(assert) {
var model = this.subject();
// var store = this.store();
assert.ok(!!model);
});
I have a model class named user in models:
import DS from 'ember-data';
export default DS.Model.extend({
title: DS.attr('string'),
firstName: DS.attr('string'),
surname: DS.attr('string'),
dateOfBirth: DS.attr('string'),
telephoneNumber: DS.attr('string'),
accountType: DS.belongsTo('accountType'),
emailAddress: DS.attr('string')
});
Aucun commentaire:
Enregistrer un commentaire