mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-27 00:05:15 +02:00
Adding new Settings shortcuts.
This commit is contained in:
4
res/app/components/stf/text-history/index.js
Normal file
4
res/app/components/stf/text-history/index.js
Normal file
@@ -0,0 +1,4 @@
|
||||
module.exports = angular.module('stf.text-history', [
|
||||
|
||||
])
|
||||
.directive('textHistory', require('./text-history-directive'))
|
||||
@@ -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) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
23
res/app/components/stf/text-history/text-history-spec.js
Normal file
23
res/app/components/stf/text-history/text-history-spec.js
Normal 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');
|
||||
*/
|
||||
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user