Adding new Settings shortcuts.

This commit is contained in:
Gunther Brunner
2014-05-22 22:27:28 +09:00
parent d14b9965b0
commit f5ffd14c92
9 changed files with 125 additions and 29 deletions

View File

@@ -0,0 +1,4 @@
module.exports = angular.module('stf.text-history', [
])
.directive('textHistory', require('./text-history-directive'))

View File

@@ -0,0 +1,12 @@
//input.form-control(type='text', placeholder='', ng-model='selectedAction',
// typeahead='action for action in activityActions')
module.exports = function textHistoryDirective() {
return {
restrict: 'A',
template: ''
link: function (scope, element, attrs) {
}
}
}

View File

@@ -0,0 +1,23 @@
describe('textHistory', function () {
beforeEach(module('stf.text-history'));
var scope, compile;
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 text-history name="name">hi</div>')(scope);
expect(element.text()).toBe('hello, world');
*/
});
});