测试用例
TypeError:无法读取属性' uid'为null
let swimming: laughing;
spyOn(swimming.running.gridkendo,'remote').and.returnValue(null);
swimming.running.shopping(values);
代码
shopping(values)
{
console.log("I am here---> shopping");
var grid = $('#ringGrid').data('kendoGrid');
console.log("I am here 2---> shopping" + grid);
//console.log("I am here 2---> shopping" + JSON.stringify(grid));
var school = grid.dataItem(grid.select());
grid.dataSource.remove(school);
// var shopping = record_to_delete;
// shopping.remove();
$('#cap').hide();
}