Fix admin ui unit tests for tableService

Steps to reproduce

Steps to reproduce:
1. Go to modules/matterhorn-admin-ui-ng
2. run the command 'grunt'

Actual Results:
Four tests fail:

PhantomJS 2.1.1 (Mac OS X 0.0.0) Table #mergeColumns returns only available columns FAILED
TypeError: undefined is not a constructor (evaluating 'Table.mergeColumns(storedColumns, availableColumns)') in /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/shared/services/tableServiceSpec.js (line 115)
/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/shared/services/tableServiceSpec.js:115:45
PhantomJS 2.1.1 (Mac OS X 0.0.0) Table #mergeColumns returns the default columns when no stored columns are available FAILED
TypeError: undefined is not a constructor (evaluating 'Table.mergeColumns(undefined, availableColumns)') in /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/shared/services/tableServiceSpec.js (line 130)
/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/shared/services/tableServiceSpec.js:130:45
PhantomJS 2.1.1 (Mac OS X 0.0.0) Table #mergeColumns returns empty columns without any columns given FAILED
TypeError: undefined is not a constructor (evaluating 'Table.mergeColumns(undefined, undefined)') in /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/shared/services/tableServiceSpec.js (line 135)
/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/shared/services/tableServiceSpec.js:135:38
PhantomJS 2.1.1 (Mac OS X 0.0.0) Table #getTableName extracts the table name from the current url FAILED
TypeError: undefined is not a constructor (evaluating 'Table.getTableName()') in /Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/shared/services/tableServiceSpec.js (line 142)
/Users/stauber/Development/switch-opencast-2.2/modules/matterhorn-admin-ui-ng/src/test/resources/test/unit/shared/services/tableServiceSpec.js:142:3

Expected Results:
Tests should pass

Workaround (if any):

Status

Assignee

Sven Stauber

Reporter

Sven Stauber

Severity

Build Error

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Minor
Configure