mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
describe('clearButton', function () {
|
||||
describe('clearButton', function() {
|
||||
|
||||
beforeEach(angular.mock.module(require('./').name))
|
||||
|
||||
var scope, compile
|
||||
|
||||
beforeEach(inject(function ($rootScope, $compile) {
|
||||
beforeEach(inject(function($rootScope, $compile) {
|
||||
scope = $rootScope.$new()
|
||||
compile = $compile
|
||||
}))
|
||||
|
||||
it('should display a text label', function () {
|
||||
it('should display a text label', function() {
|
||||
var element = compile('<clear-button />')(scope)
|
||||
expect(element.find('span').text()).toBe('Clear')
|
||||
})
|
||||
|
||||
it('should display a trash icon', function () {
|
||||
it('should display a trash icon', function() {
|
||||
var element = compile('<clear-button />')(scope)
|
||||
expect(element.find('i')[0].getAttribute('class')).toMatch('fa-trash-o')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user