mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
21 lines
475 B
JavaScript
21 lines
475 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('')
|
|
}))
|
|
|
|
})
|