1- import { findCommentPredicate } from '../lib /find'
1+ import { findCommentPredicate } from '../src /find'
22
33describe ( 'find comment tests' , ( ) => {
44 test ( 'find by bodyIncludes' , async ( ) => {
@@ -16,7 +16,8 @@ describe('find comment tests', () => {
1616 {
1717 id : 1 ,
1818 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
19- user : { login : 'dorothy' }
19+ user : { login : 'dorothy' } ,
20+ created_at : '2020-01-01T00:00:00Z'
2021 }
2122 )
2223 ) . toEqual ( true )
@@ -35,7 +36,8 @@ describe('find comment tests', () => {
3536 {
3637 id : 1 ,
3738 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
38- user : { login : 'dorothy' }
39+ user : { login : 'dorothy' } ,
40+ created_at : '2020-01-01T00:00:00Z'
3941 }
4042 )
4143 ) . toEqual ( false )
@@ -56,7 +58,8 @@ describe('find comment tests', () => {
5658 {
5759 id : 1 ,
5860 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
59- user : { login : 'dorothy' }
61+ user : { login : 'dorothy' } ,
62+ created_at : '2020-01-01T00:00:00Z'
6063 }
6164 )
6265 ) . toEqual ( true )
@@ -75,7 +78,8 @@ describe('find comment tests', () => {
7578 {
7679 id : 1 ,
7780 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
78- user : { login : 'dorothy' }
81+ user : { login : 'dorothy' } ,
82+ created_at : '2020-01-01T00:00:00Z'
7983 }
8084 )
8185 ) . toEqual ( false )
@@ -96,7 +100,8 @@ describe('find comment tests', () => {
96100 {
97101 id : 1 ,
98102 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
99- user : { login : 'dorothy' }
103+ user : { login : 'dorothy' } ,
104+ created_at : '2020-01-01T00:00:00Z'
100105 }
101106 )
102107 ) . toEqual ( true )
@@ -115,7 +120,8 @@ describe('find comment tests', () => {
115120 {
116121 id : 1 ,
117122 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
118- user : { login : 'dorothy' }
123+ user : { login : 'dorothy' } ,
124+ created_at : '2020-01-01T00:00:00Z'
119125 }
120126 )
121127 ) . toEqual ( false )
@@ -136,7 +142,8 @@ describe('find comment tests', () => {
136142 {
137143 id : 1 ,
138144 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
139- user : { login : 'dorothy' }
145+ user : { login : 'dorothy' } ,
146+ created_at : '2020-01-01T00:00:00Z'
140147 }
141148 )
142149 ) . toEqual ( true )
@@ -155,7 +162,8 @@ describe('find comment tests', () => {
155162 {
156163 id : 1 ,
157164 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
158- user : { login : 'dorothy' }
165+ user : { login : 'dorothy' } ,
166+ created_at : '2020-01-01T00:00:00Z'
159167 }
160168 )
161169 ) . toEqual ( false )
@@ -174,7 +182,8 @@ describe('find comment tests', () => {
174182 {
175183 id : 1 ,
176184 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
177- user : { login : 'dorothy' }
185+ user : { login : 'dorothy' } ,
186+ created_at : '2020-01-01T00:00:00Z'
178187 }
179188 )
180189 ) . toEqual ( false )
@@ -195,7 +204,8 @@ describe('find comment tests', () => {
195204 {
196205 id : 1 ,
197206 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
198- user : { login : 'dorothy' }
207+ user : { login : 'dorothy' } ,
208+ created_at : '2020-01-01T00:00:00Z'
199209 }
200210 )
201211 ) . toEqual ( true )
@@ -214,7 +224,8 @@ describe('find comment tests', () => {
214224 {
215225 id : 1 ,
216226 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
217- user : { login : 'dorothy' }
227+ user : { login : 'dorothy' } ,
228+ created_at : '2020-01-01T00:00:00Z'
218229 }
219230 )
220231 ) . toEqual ( false )
@@ -233,7 +244,8 @@ describe('find comment tests', () => {
233244 {
234245 id : 1 ,
235246 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
236- user : { login : 'dorothy' }
247+ user : { login : 'dorothy' } ,
248+ created_at : '2020-01-01T00:00:00Z'
237249 }
238250 )
239251 ) . toEqual ( false )
@@ -254,7 +266,8 @@ describe('find comment tests', () => {
254266 {
255267 id : 1 ,
256268 body : `Toto, I've a feeling we're not in Kansas anymore.` ,
257- user : { login : 'dorothy' }
269+ user : { login : 'dorothy' } ,
270+ created_at : '2020-01-01T00:00:00Z'
258271 }
259272 )
260273 ) . toEqual ( true )
0 commit comments