-
-
Notifications
You must be signed in to change notification settings - Fork 497
/
Copy pathtest-template.js
48 lines (41 loc) · 1.04 KB
/
test-template.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
;(function() {
'use strict'
/**
* Your test file should end with "-test.js" to be executed.
* Don't modify this file but copy it to create a new test group
*/
describe('Test group description - ', function() {
var helper, RzSliderOptions, $rootScope, $timeout
beforeEach(module('test-helper'))
beforeEach(inject(function(
TestHelper,
_RzSliderOptions_,
_$rootScope_,
_$timeout_
) {
helper = TestHelper
RzSliderOptions = _RzSliderOptions_
$rootScope = _$rootScope_
$timeout = _$timeout_
}))
afterEach(function() {
helper.clean()
})
/*
The slider that will be used for each test.
If you want to create a specific one for each test, then create it directly in the "it" blocks
*/
beforeEach(function() {
var sliderConf = {
value: 10,
options: {
floor: 0,
ceil: 100,
step: 10,
},
}
helper.createSlider(sliderConf)
})
it('should be true', function() {})
})
})()