|
@@ -110,6 +110,8 @@ describe('DashboardListCtrl', () => {
|
|
|
describe('with no filter', () => {
|
|
describe('with no filter', () => {
|
|
|
beforeEach(() => {
|
|
beforeEach(() => {
|
|
|
ctrl.query.query = 'd';
|
|
ctrl.query.query = 'd';
|
|
|
|
|
+ ctrl.canMove = true;
|
|
|
|
|
+ ctrl.canDelete = true;
|
|
|
return ctrl.getDashboards();
|
|
return ctrl.getDashboards();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -120,6 +122,14 @@ describe('DashboardListCtrl', () => {
|
|
|
expect(ctrl.sections[1].checked).toEqual(false);
|
|
expect(ctrl.sections[1].checked).toEqual(false);
|
|
|
expect(ctrl.sections[1].items[0].checked).toEqual(false);
|
|
expect(ctrl.sections[1].items[0].checked).toEqual(false);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ it('should disable Move To button', () => {
|
|
|
|
|
+ expect(ctrl.canMove).toBeFalsy();
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ it('should disable delete button', () => {
|
|
|
|
|
+ expect(ctrl.canDelete).toBeFalsy();
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
describe('with tag filter', () => {
|
|
describe('with tag filter', () => {
|