UNPKG

siesta-lite

Version:

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

12 lines (9 loc) 281 B
Ext.define('My.Model.Employee', { extend : 'My.Model.Resource', fields : [ 'HourlyRate' ], calculateSalary : function (startDate, endDate) { return this.get('Salary') * (endDate - startDate) / 1000 * 60 * 60 } })