diff --git a/res/app/components/stf/logcat-table/index.js b/res/app/components/stf/logcat-table/index.js new file mode 100644 index 00000000..191244f8 --- /dev/null +++ b/res/app/components/stf/logcat-table/index.js @@ -0,0 +1,6 @@ +require('./logcat-table.css') + +module.exports = angular.module('stf.logcat-table', [ + +]) + .directive('logcatTable', require('./logcat-table-directive')) diff --git a/res/app/components/stf/logcat-table/logcat-table-directive.js b/res/app/components/stf/logcat-table/logcat-table-directive.js new file mode 100644 index 00000000..f6d70398 --- /dev/null +++ b/res/app/components/stf/logcat-table/logcat-table-directive.js @@ -0,0 +1,13 @@ +module.exports = function logcatTableDirective() { + return { + restrict: 'E', + replace: true, + scope: { + + }, + template: require('./logcat-table.jade'), + link: function (scope, element, attrs) { + + } + } +} diff --git a/res/app/components/stf/logcat-table/logcat-table-spec.js b/res/app/components/stf/logcat-table/logcat-table-spec.js new file mode 100644 index 00000000..58c34628 --- /dev/null +++ b/res/app/components/stf/logcat-table/logcat-table-spec.js @@ -0,0 +1,23 @@ +describe('logcatTable', function () { + + beforeEach(module('stf.logcat-table')); + + 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('