I want to do a very simple Jasmine test to test the following directive:
'use strict';
angular.module('kits.ui.components')
.directive('toggle', function() {
return {
restrict: 'E',
require: 'ngModel',
scope: {
onText: '@',
offText: '@',
ngModel: '=',
label: '@'
},
templateUrl: 'modules/ui.components/toggle/views/toggle.view.html'
};
});
What is the best approach and recommendation for such simple directives?
Aucun commentaire:
Enregistrer un commentaire