Refactored basic mode to a directive.

This commit is contained in:
Gunther Brunner
2014-05-27 19:03:53 +09:00
parent eb3e7a40cc
commit 6429a681be
6 changed files with 45 additions and 9 deletions

View File

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