1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00
OpenSTF/res/app/control-panes/dashboard/shell/shell-spec.js
2014-09-04 16:19:58 +09:00

20 lines
478 B
JavaScript

describe('ShellCtrl', function () {
beforeEach(angular.mock.module(require('./').name))
var scope, ctrl
beforeEach(inject(function ($rootScope, $controller) {
scope = $rootScope.$new()
ctrl = $controller('ShellCtrl', {$scope: scope})
}))
it('should clear the results', inject(function () {
scope.result = ['result']
scope.run('clear')
expect(scope.result).toBe(null)
expect(scope.data).toBe('')
expect(scope.command).toBe('')
}))
})