mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00

-Added filter button directive. -Moved the UI stuff to stf/common-ui. -Added optional filtering to Details. -Sync active tabs to local forage. -Device List status filters by usability. -Removed 750ms delay from filtering.
23 lines
No EOL
558 B
JavaScript
23 lines
No EOL
558 B
JavaScript
describe('clearButton', function () {
|
|
|
|
beforeEach(module('stf.clear-button'));
|
|
|
|
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 clear-button name="name">hi</div>')(scope);
|
|
expect(element.text()).toBe('hello, world');
|
|
*/
|
|
|
|
});
|
|
}); |