@@ -2,8 +2,8 @@ import {bulkUpdate, mergeGroups, paramsToQueryArgs} from 'sentry/actionCreators/
22import GroupStore from 'sentry/stores/groupStore' ;
33
44describe ( 'group' , ( ) => {
5- describe ( 'paramsToQueryArgs()' , function ( ) {
6- it ( 'should convert itemIds properties to id array' , function ( ) {
5+ describe ( 'paramsToQueryArgs()' , ( ) => {
6+ it ( 'should convert itemIds properties to id array' , ( ) => {
77 expect (
88 paramsToQueryArgs ( {
99 itemIds : [ '1' , '2' , '3' ] ,
@@ -12,7 +12,7 @@ describe('group', () => {
1212 ) . toEqual ( { id : [ '1' , '2' , '3' ] } ) ;
1313 } ) ;
1414
15- it ( 'should extract query property if no itemIds' , function ( ) {
15+ it ( 'should extract query property if no itemIds' , ( ) => {
1616 const invalidArgs : any = {
1717 foo : 'bar' ,
1818 } ;
@@ -22,7 +22,7 @@ describe('group', () => {
2222 } ) ;
2323 } ) ;
2424
25- it ( 'should convert params w/o itemIds or query to empty object' , function ( ) {
25+ it ( 'should convert params w/o itemIds or query to empty object' , ( ) => {
2626 const invalidArgs : any = {
2727 foo : 'bar' ,
2828 bar : 'baz' , // paramsToQueryArgs ignores these
@@ -31,7 +31,7 @@ describe('group', () => {
3131 expect ( paramsToQueryArgs ( invalidArgs ) ) . toEqual ( { } ) ;
3232 } ) ;
3333
34- it ( 'should keep environment when query is provided' , function ( ) {
34+ it ( 'should keep environment when query is provided' , ( ) => {
3535 expect (
3636 paramsToQueryArgs ( {
3737 query : 'is:unresolved' ,
@@ -40,7 +40,7 @@ describe('group', () => {
4040 ) . toEqual ( { query : 'is:unresolved' , environment : 'production' } ) ;
4141 } ) ;
4242
43- it ( 'should exclude environment when it is null/undefined' , function ( ) {
43+ it ( 'should exclude environment when it is null/undefined' , ( ) => {
4444 expect (
4545 paramsToQueryArgs ( {
4646 query : 'is:unresolved' ,
@@ -49,7 +49,7 @@ describe('group', () => {
4949 ) . toEqual ( { query : 'is:unresolved' } ) ;
5050 } ) ;
5151
52- it ( 'should handle non-empty projects' , function ( ) {
52+ it ( 'should handle non-empty projects' , ( ) => {
5353 expect (
5454 paramsToQueryArgs ( {
5555 itemIds : [ '1' , '2' , '3' ] ,
@@ -73,12 +73,12 @@ describe('group', () => {
7373 } ) ;
7474 } ) ;
7575
76- describe ( 'bulkUpdate()' , function ( ) {
77- beforeEach ( function ( ) {
76+ describe ( 'bulkUpdate()' , ( ) => {
77+ beforeEach ( ( ) => {
7878 jest . spyOn ( GroupStore , 'onUpdate' ) ; // stub GroupStore.onUpdate call from update
7979 } ) ;
8080
81- it ( 'should use itemIds as query if provided' , function ( ) {
81+ it ( 'should use itemIds as query if provided' , ( ) => {
8282 const request = MockApiClient . addMockResponse ( {
8383 url : '/projects/1337/1337/issues/' ,
8484 method : 'PUT' ,
@@ -103,7 +103,7 @@ describe('group', () => {
103103 ) ;
104104 } ) ;
105105
106- it ( 'should use query as query if itemIds are absent' , function ( ) {
106+ it ( 'should use query as query if itemIds are absent' , ( ) => {
107107 const request = MockApiClient . addMockResponse ( {
108108 url : '/projects/1337/1337/issues/' ,
109109 method : 'PUT' ,
@@ -128,7 +128,7 @@ describe('group', () => {
128128 ) ;
129129 } ) ;
130130
131- it ( 'should apply project option' , function ( ) {
131+ it ( 'should apply project option' , ( ) => {
132132 const request = MockApiClient . addMockResponse ( {
133133 url : '/organizations/1337/issues/' ,
134134 method : 'PUT' ,
@@ -153,14 +153,14 @@ describe('group', () => {
153153 } ) ;
154154 } ) ;
155155
156- describe ( 'mergeGroups()' , function ( ) {
156+ describe ( 'mergeGroups()' , ( ) => {
157157 // TODO: this is totally copypasta from the test above. We need to refactor
158158 // these API methods/tests.
159- beforeEach ( function ( ) {
159+ beforeEach ( ( ) => {
160160 jest . spyOn ( GroupStore , 'onMerge' ) ; // stub GroupStore.onMerge call from mergeGroups
161161 } ) ;
162162
163- it ( 'should use itemIds as query if provided' , function ( ) {
163+ it ( 'should use itemIds as query if provided' , ( ) => {
164164 const request = MockApiClient . addMockResponse ( {
165165 url : '/projects/1337/1337/issues/' ,
166166 method : 'PUT' ,
@@ -184,7 +184,7 @@ describe('group', () => {
184184 ) ;
185185 } ) ;
186186
187- it ( 'should use query as query if itemIds are absent' , function ( ) {
187+ it ( 'should use query as query if itemIds are absent' , ( ) => {
188188 const request = MockApiClient . addMockResponse ( {
189189 url : '/projects/1337/1337/issues/' ,
190190 method : 'PUT' ,
0 commit comments