mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 21:05:18 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -2,7 +2,7 @@ module.exports =
|
||||
function angularDraggabillyDirective(DraggabillyService, $parse) {
|
||||
return {
|
||||
restrict: 'AE',
|
||||
link: function (scope, element, attrs) {
|
||||
link: function(scope, element, attrs) {
|
||||
var parsedAttrs = $parse(attrs.angularDraggabilly)()
|
||||
if (typeof parsedAttrs !== 'object') {
|
||||
parsedAttrs = {}
|
||||
@@ -11,7 +11,7 @@ module.exports =
|
||||
var options = angular.extend({
|
||||
}, parsedAttrs)
|
||||
|
||||
/* jshint unused: false */
|
||||
/* eslint no-unused-vars: 0 */
|
||||
var draggie = new DraggabillyService(element[0], options)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,23 +1,21 @@
|
||||
describe('angularDraggabilly', function () {
|
||||
describe('angularDraggabilly', function() {
|
||||
|
||||
beforeEach(angular.mock.module(require('./').name));
|
||||
beforeEach(angular.mock.module(require('./').name))
|
||||
|
||||
var scope, compile;
|
||||
var scope, compile
|
||||
|
||||
beforeEach(inject(function ($rootScope, $compile) {
|
||||
scope = $rootScope.$new();
|
||||
compile = $compile;
|
||||
}));
|
||||
|
||||
it('should ...', function () {
|
||||
beforeEach(inject(function($rootScope, $compile) {
|
||||
scope = $rootScope.$new()
|
||||
compile = $compile
|
||||
}))
|
||||
|
||||
it('should ...', function() {
|
||||
/*
|
||||
To test your directive, you need to create some html that would use your directive,
|
||||
send that through compile() then compare the results.
|
||||
|
||||
var element = compile('<div angular-draggabilly name="name">hi</div>')(scope);
|
||||
expect(element.text()).toBe('hello, world');
|
||||
var element = compile('<div angular-draggabilly name="name">hi</div>')(scope)
|
||||
expect(element.text()).toBe('hello, world')
|
||||
*/
|
||||
|
||||
});
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
@@ -3,7 +3,7 @@ var draggabilly = require('draggabilly')
|
||||
module.exports = angular.module('stf.angular-draggabilly', [
|
||||
|
||||
])
|
||||
.factory('DraggabillyService', function () {
|
||||
.factory('DraggabillyService', function() {
|
||||
return draggabilly
|
||||
})
|
||||
.directive('angularDraggabilly', require('./angular-draggabilly-directive'))
|
||||
|
||||
Reference in New Issue
Block a user