@@ -2,54 +2,66 @@ import { meetupDay } from './meetup';
2
2
3
3
describe ( 'meetupDay()' , ( ) => {
4
4
test ( 'test monteenth of may 2013' , ( ) => {
5
- expect ( meetupDay ( 2013 , 4 , 'Monday' , 'teenth' ) ) . toEqual ( new Date ( 2013 , 4 , 13 ) ) ;
5
+ expect ( meetupDay ( 2013 , 4 , 'Monday' , 'teenth' ) ) . toEqual (
6
+ new Date ( 2013 , 4 , 13 )
7
+ ) ;
6
8
} ) ;
7
9
8
- xtest ( 'test saturteenth of february 2013' , ( ) => {
9
- expect ( meetupDay ( 2013 , 1 , 'Saturday' , 'teenth' ) ) . toEqual ( new Date ( 2013 , 1 , 16 ) ) ;
10
+ test ( 'test saturteenth of february 2013' , ( ) => {
11
+ expect ( meetupDay ( 2013 , 1 , 'Saturday' , 'teenth' ) ) . toEqual (
12
+ new Date ( 2013 , 1 , 16 )
13
+ ) ;
10
14
} ) ;
11
15
12
- xtest ( 'test first tuesday of may 2013' , ( ) => {
16
+ test ( 'test first tuesday of may 2013' , ( ) => {
13
17
expect ( meetupDay ( 2013 , 4 , 'Tuesday' , '1st' ) ) . toEqual ( new Date ( 2013 , 4 , 7 ) ) ;
14
18
} ) ;
15
19
16
- xtest ( 'test second monday of april 2013' , ( ) => {
20
+ test ( 'test second monday of april 2013' , ( ) => {
17
21
expect ( meetupDay ( 2013 , 3 , 'Monday' , '2nd' ) ) . toEqual ( new Date ( 2013 , 3 , 8 ) ) ;
18
22
} ) ;
19
23
20
- xtest ( 'test third thursday of september 2013' , ( ) => {
21
- expect ( meetupDay ( 2013 , 8 , 'Thursday' , '3rd' ) ) . toEqual ( new Date ( 2013 , 8 , 19 ) ) ;
24
+ test ( 'test third thursday of september 2013' , ( ) => {
25
+ expect ( meetupDay ( 2013 , 8 , 'Thursday' , '3rd' ) ) . toEqual (
26
+ new Date ( 2013 , 8 , 19 )
27
+ ) ;
22
28
} ) ;
23
29
24
- xtest ( 'test fourth sunday of march 2013' , ( ) => {
30
+ test ( 'test fourth sunday of march 2013' , ( ) => {
25
31
expect ( meetupDay ( 2013 , 2 , 'Sunday' , '4th' ) ) . toEqual ( new Date ( 2013 , 2 , 24 ) ) ;
26
32
} ) ;
27
33
28
- xtest ( 'test last thursday of october 2013' , ( ) => {
29
- expect ( meetupDay ( 2013 , 9 , 'Thursday' , 'last' ) ) . toEqual ( new Date ( 2013 , 9 , 31 ) ) ;
34
+ test ( 'test last thursday of october 2013' , ( ) => {
35
+ expect ( meetupDay ( 2013 , 9 , 'Thursday' , 'last' ) ) . toEqual (
36
+ new Date ( 2013 , 9 , 31 )
37
+ ) ;
30
38
} ) ;
31
39
32
- xtest ( 'test last wednesday of february 2012' , ( ) => {
33
- expect ( meetupDay ( 2012 , 1 , 'Wednesday' , 'last' ) ) . toEqual ( new Date ( 2012 , 1 , 29 ) ) ;
40
+ test ( 'test last wednesday of february 2012' , ( ) => {
41
+ expect ( meetupDay ( 2012 , 1 , 'Wednesday' , 'last' ) ) . toEqual (
42
+ new Date ( 2012 , 1 , 29 )
43
+ ) ;
34
44
} ) ;
35
45
36
- xtest ( 'test last wednesday of december 2014' , ( ) => {
37
- expect ( meetupDay ( 2014 , 11 , 'Wednesday' , 'last' ) ) . toEqual ( new Date ( 2014 , 11 , 31 ) ) ;
46
+ test ( 'test last wednesday of december 2014' , ( ) => {
47
+ expect ( meetupDay ( 2014 , 11 , 'Wednesday' , 'last' ) ) . toEqual (
48
+ new Date ( 2014 , 11 , 31 )
49
+ ) ;
38
50
} ) ;
39
51
40
- xtest ( 'test last sunday of only four week february 2015' , ( ) => {
52
+ test ( 'test last sunday of only four week february 2015' , ( ) => {
41
53
expect ( meetupDay ( 2015 , 1 , 'Sunday' , 'last' ) ) . toEqual ( new Date ( 2015 , 1 , 22 ) ) ;
42
54
} ) ;
43
55
44
- xtest ( 'test first friday of december 2012' , ( ) => {
56
+ test ( 'test first friday of december 2012' , ( ) => {
45
57
expect ( meetupDay ( 2012 , 11 , 'Friday' , '1st' ) ) . toEqual ( new Date ( 2012 , 11 , 7 ) ) ;
46
58
} ) ;
47
59
48
- xtest ( 'test fifth monday of march 2015' , ( ) => {
60
+ test ( 'test fifth monday of march 2015' , ( ) => {
49
61
expect ( meetupDay ( 2015 , 2 , 'Monday' , '5th' ) ) . toEqual ( new Date ( 2015 , 2 , 30 ) ) ;
50
62
} ) ;
51
63
52
- xtest ( 'test nonexistent fifth monday of february 2015' , ( ) => {
64
+ test ( 'test nonexistent fifth monday of february 2015' , ( ) => {
53
65
expect ( ( ) => {
54
66
meetupDay ( 2015 , 1 , 'Monday' , '5th' ) ;
55
67
} ) . toThrow ( ) ;
0 commit comments