@@ -5,58 +5,56 @@ var expect = require('expect');
5
5
var defaultResolution = require ( '../' ) ;
6
6
var nodeVersion = require ( '../node-version' ) ;
7
7
8
- describe ( 'nodeVersion' , function ( ) {
9
-
10
- it ( 'has all integers and not strings' , function ( done ) {
8
+ describe ( 'nodeVersion' , function ( ) {
9
+ it ( 'has all integers and not strings' , function ( done ) {
11
10
expect ( typeof nodeVersion . major ) . toEqual ( 'number' ) ;
12
11
expect ( typeof nodeVersion . minor ) . toEqual ( 'number' ) ;
13
12
expect ( typeof nodeVersion . patch ) . toEqual ( 'number' ) ;
14
13
done ( ) ;
15
14
} ) ;
16
15
} ) ;
17
16
18
- describe ( 'defaultResolution' , function ( ) {
17
+ describe ( 'defaultResolution' , function ( ) {
19
18
// Typically I don't unit test helpers, but this reduces the last run tests
20
19
var major = nodeVersion . major ;
21
20
var minor = nodeVersion . minor ;
22
21
23
- afterEach ( function ( done ) {
22
+ afterEach ( function ( done ) {
24
23
nodeVersion . major = major ;
25
24
nodeVersion . minor = minor ;
26
25
done ( ) ;
27
26
} ) ;
28
27
29
- it ( 'should return default resolution to 1000 (1 second) on node v0.10' , function ( done ) {
28
+ it ( 'should return default resolution to 1000 (1 second) on node v0.10' , function ( done ) {
30
29
nodeVersion . major = 0 ;
31
30
nodeVersion . minor = 10 ;
32
31
expect ( defaultResolution ( ) ) . toEqual ( 1000 ) ;
33
32
done ( ) ;
34
33
} ) ;
35
34
36
- it ( 'should return default resolution to 1 (millisecond) on node v0.11' , function ( done ) {
35
+ it ( 'should return default resolution to 1 (millisecond) on node v0.11' , function ( done ) {
37
36
nodeVersion . major = 0 ;
38
37
nodeVersion . minor = 11 ;
39
38
expect ( defaultResolution ( ) ) . toEqual ( 1 ) ;
40
39
done ( ) ;
41
40
} ) ;
42
41
43
- it ( 'should return default resolution to 1 (millisecond) on node v0.12' , function ( done ) {
42
+ it ( 'should return default resolution to 1 (millisecond) on node v0.12' , function ( done ) {
44
43
nodeVersion . major = 0 ;
45
44
nodeVersion . minor = 12 ;
46
45
expect ( defaultResolution ( ) ) . toEqual ( 1 ) ;
47
46
done ( ) ;
48
47
} ) ;
49
48
50
- it ( 'should return default resolution to 1 (millisecond) on node v4.3' , function ( done ) {
49
+ it ( 'should return default resolution to 1 (millisecond) on node v4.3' , function ( done ) {
51
50
nodeVersion . major = 4 ;
52
51
nodeVersion . minor = 3 ;
53
52
expect ( defaultResolution ( ) ) . toEqual ( 1 ) ;
54
53
done ( ) ;
55
54
} ) ;
56
55
57
- it ( 'should return default resolution passed as argument' , function ( done ) {
56
+ it ( 'should return default resolution passed as argument' , function ( done ) {
58
57
expect ( defaultResolution ( 2000 ) ) . toEqual ( 2000 ) ;
59
58
done ( ) ;
60
59
} ) ;
61
-
62
60
} ) ;
0 commit comments