Unit tests for document list component

This commit is contained in:
Denys Vuika
2016-06-30 13:39:52 +01:00
parent 8632013231
commit 258148cc1c
9 changed files with 289 additions and 11 deletions

View File

@@ -16,6 +16,16 @@
*/
export class ColumnSortingModel {
static DEFAULT_DIRECTION: string = 'asc';
key: string;
direction: string = 'asc';
direction: string = ColumnSortingModel.DEFAULT_DIRECTION;
constructor(opts?: any) {
if (opts) {
this.key = opts.key;
this.direction = opts.direction || ColumnSortingModel.DEFAULT_DIRECTION;
}
}
}