@@ -83,7 +83,7 @@ test('contactQueryFilterFunction()', async t => {
83
83
84
84
void t . test ( 'filter name by regex' , async t => {
85
85
const QUERY = { name : REGEX_VALUE }
86
- const ID_LIST = [ 'id1' , 'id3' ]
86
+ const ID_LIST = [ 'id1' , 'id3' ]
87
87
88
88
const func = puppet . contactQueryFilterFactory ( QUERY )
89
89
const idList = PAYLOAD_LIST . filter ( func ) . map ( payload => payload . id )
@@ -92,7 +92,7 @@ test('contactQueryFilterFunction()', async t => {
92
92
93
93
void t . test ( 'filter name by text' , async t => {
94
94
const QUERY = { name : TEXT_VALUE }
95
- const ID_LIST = [ 'id2' , 'id4' ]
95
+ const ID_LIST = [ 'id2' , 'id4' ]
96
96
97
97
const func = puppet . contactQueryFilterFactory ( QUERY )
98
98
const idList = PAYLOAD_LIST . filter ( func ) . map ( payload => payload . id )
@@ -101,7 +101,7 @@ test('contactQueryFilterFunction()', async t => {
101
101
102
102
void t . test ( 'filter alias by regex' , async t => {
103
103
const QUERY = { alias : REGEX_VALUE }
104
- const ID_LIST = [ 'id2' , 'id4' ]
104
+ const ID_LIST = [ 'id2' , 'id4' ]
105
105
106
106
const func = puppet . contactQueryFilterFactory ( QUERY )
107
107
const idList = PAYLOAD_LIST . filter ( func ) . map ( payload => payload . id )
@@ -110,7 +110,7 @@ test('contactQueryFilterFunction()', async t => {
110
110
111
111
void t . test ( 'filter alias by text' , async t => {
112
112
const QUERY = { alias : TEXT_VALUE }
113
- const ID_LIST = [ 'id1' , 'id3' ]
113
+ const ID_LIST = [ 'id1' , 'id3' ]
114
114
115
115
const func = puppet . contactQueryFilterFactory ( QUERY )
116
116
const idList = PAYLOAD_LIST . filter ( func ) . map ( payload => payload . id )
@@ -119,7 +119,7 @@ test('contactQueryFilterFunction()', async t => {
119
119
120
120
void t . test ( 'filter contact existing id' , async t => {
121
121
const QUERY = { id : 'id1' }
122
- const ID_LIST = [ 'id1' ]
122
+ const ID_LIST = [ 'id1' ]
123
123
124
124
const func = puppet . contactQueryFilterFactory ( QUERY )
125
125
const idList = PAYLOAD_LIST . filter ( func ) . map ( payload => payload . id )
@@ -186,7 +186,7 @@ test('roomQueryFilterFunction()', async t => {
186
186
187
187
void t . test ( 'filter name by regex' , async t => {
188
188
const QUERY = { topic : REGEX_VALUE }
189
- const ID_LIST = [ 'id2' , 'id4' ]
189
+ const ID_LIST = [ 'id2' , 'id4' ]
190
190
191
191
const func = puppet . roomQueryFilterFactory ( QUERY )
192
192
const idList = PAYLOAD_LIST . filter ( func ) . map ( payload => payload . id )
@@ -195,7 +195,7 @@ test('roomQueryFilterFunction()', async t => {
195
195
196
196
void t . test ( 'filter name by text' , async t => {
197
197
const QUERY = { topic : TEXT_VALUE }
198
- const ID_LIST = [ 'id1' , 'id3' ]
198
+ const ID_LIST = [ 'id1' , 'id3' ]
199
199
200
200
const func = puppet . roomQueryFilterFactory ( QUERY )
201
201
const idList = PAYLOAD_LIST . filter ( func ) . map ( payload => payload . id )
@@ -204,7 +204,7 @@ test('roomQueryFilterFunction()', async t => {
204
204
205
205
void t . test ( 'filter name by existing id' , async t => {
206
206
const QUERY = { id : 'id4' }
207
- const ID_LIST = [ 'id4' ]
207
+ const ID_LIST = [ 'id4' ]
208
208
209
209
const func = puppet . roomQueryFilterFactory ( QUERY )
210
210
const idList = PAYLOAD_LIST . filter ( func ) . map ( payload => payload . id )
0 commit comments