UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

13 lines (10 loc) 298 B
Ext.define('AM.model.User', { extend: 'Ext.data.Model', fields: ['id', 'firstname', 'lastname', 'email'], getFullName : function() { return this.get('firstname') + ' ' + this.get('lastname'); }, validateEmail : function() { return this.get('email'); } });