Commit c8bd9fd6 by bergquist

style(playlist): renames variable

parent 85a463fa
...@@ -5,7 +5,7 @@ import helpers from 'test/specs/helpers'; ...@@ -5,7 +5,7 @@ import helpers from 'test/specs/helpers';
describe('PlaylistEditCtrl', function() { describe('PlaylistEditCtrl', function() {
var ctx = new helpers.ControllerTestContext(); var ctx = new helpers.ControllerTestContext();
var dashboards = [ var searchResult = [
{ {
id: 2, id: 2,
title: 'dashboard: 2' title: 'dashboard: 2'
...@@ -19,7 +19,7 @@ describe('PlaylistEditCtrl', function() { ...@@ -19,7 +19,7 @@ describe('PlaylistEditCtrl', function() {
var playlistSrv = {}; var playlistSrv = {};
var backendSrv = { var backendSrv = {
search: (query) => { search: (query) => {
return ctx.$q.when(dashboards); return ctx.$q.when(searchResult);
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment