Added directive counter for device stats (it was not updating the numbers smoothly).

This commit is contained in:
Gunther Brunner
2014-07-09 21:44:09 +09:00
parent 2c7940f6ea
commit 84e2a4ae1c
5 changed files with 96 additions and 6 deletions

View File

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