File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -45,18 +45,16 @@ describe('supplementary functions', function () {
45
45
await bot . getSiteInfo ( ) ;
46
46
let page = new bot . Page ( 'Albert Einstein' ) ;
47
47
let views = await page . pageViews ( ) ;
48
- expect ( views ) . to . be . instanceOf ( Array ) . of . length ( 1 ) ;
48
+ expect ( views ) . to . be . instanceOf ( Array ) . of . length . greaterThanOrEqual ( 1 ) ;
49
49
expect ( views [ 0 ] ) . to . be . an ( 'object' ) . with . property ( 'article' ) . that . equals ( 'Albert_Einstein' ) ;
50
50
51
51
views = await page . pageViews ( {
52
52
agent : 'user' ,
53
- start : new bot . Date ( '1 January 2021 ' ) ,
54
- end : new bot . Date ( '5 March 2021 ' ) ,
53
+ start : new bot . Date ( '1 January 2023 ' ) ,
54
+ end : new bot . Date ( '5 March 2023 ' ) ,
55
55
} ) ;
56
- expect ( views ) . to . be . instanceOf ( Array ) . of . length ( 2 ) ;
56
+ expect ( views ) . to . be . instanceOf ( Array ) . of . length . greaterThanOrEqual ( 2 ) ;
57
57
expect ( views [ 0 ] ) . to . be . an ( 'object' ) . with . property ( 'agent' ) . that . equals ( 'user' ) ;
58
- expect ( views [ 0 ] ) . to . be . an ( 'object' ) . with . property ( 'timestamp' ) . that . equals ( '2021010100' ) ;
59
- expect ( views [ 1 ] ) . to . be . an ( 'object' ) . with . property ( 'timestamp' ) . that . equals ( '2021020100' ) ;
60
58
} ) ;
61
59
62
60
it ( 'wikiwho' , async function ( ) {
You can’t perform that action at this time.
0 commit comments