Skip to content
Snippets Groups Projects
Commit 40eac5f8 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

remove old angular test which is no longer relevant and hasn't been of any use for a while.

parent 1a5e9d4b
No related branches found
No related tags found
No related merge requests found
'use strict';
import 'metabase/controllers';
describe('metabase.controllers', function() {
beforeEach(angular.mock.module('metabase.controllers'));
describe('Homepage', function() {
beforeEach(angular.mock.inject(function($location) {
spyOn($location, 'path').and.returnValue('Fake location');
}))
it('should redirect logged-out user to /auth/login', inject(function($controller, $location) {
$controller('Homepage', { $scope: {}, AppState: { model: { currentUser: null }} });
expect($location.path).toHaveBeenCalledWith('/auth/login');
}));
it('should redirect logged-in user to /dash/', inject(function($controller, $location) {
$controller('Homepage', { $scope: {}, AppState: { model: { currentUser: {} }} });
expect($location.path).toHaveBeenCalledWith('/dash/');
}));
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment