@@ -47,11 +47,11 @@ const sign = async (addresses, values) => {
47
47
return { v, r, s }
48
48
}
49
49
50
- test ( 'scheduled rewards' , async t => {
50
+ suite ( 'scheduled rewards' , ( ) => {
51
51
// Tests rely on the state created by each other. This is a shortcut and
52
52
// should eventually be improved.
53
53
54
- await t . test ( 'empty scheduled rewards' , async t => {
54
+ test ( 'empty scheduled rewards' , async t => {
55
55
{
56
56
const res = await fetch ( `${ api } /scheduled-rewards` )
57
57
assert . deepEqual ( await res . json ( ) , { } )
@@ -61,7 +61,7 @@ test('scheduled rewards', async t => {
61
61
assert . deepEqual ( await res . json ( ) , [ ] )
62
62
}
63
63
} )
64
- await t . test ( 'ignore burner address' , async t => {
64
+ test ( 'ignore burner address' , async t => {
65
65
{
66
66
const participants = [ '0x000000000000000000000000000000000000dEaD' ]
67
67
const scores = [ '100' ]
@@ -86,7 +86,7 @@ test('scheduled rewards', async t => {
86
86
assert . deepEqual ( log , [ ] )
87
87
}
88
88
} )
89
- await t . test ( 'set scores' , async t => {
89
+ test ( 'set scores' , async t => {
90
90
{
91
91
const participants = [
92
92
'0x000000000000000000000000000000000000dEa2' ,
@@ -139,7 +139,7 @@ test('scheduled rewards', async t => {
139
139
] )
140
140
}
141
141
} )
142
- await t . test ( 'increase scores' , async t => {
142
+ test ( 'increase scores' , async t => {
143
143
{
144
144
const participants = [ '0x000000000000000000000000000000000000dEa2' ]
145
145
const scores = [ '10' ]
@@ -189,7 +189,7 @@ test('scheduled rewards', async t => {
189
189
] )
190
190
}
191
191
} )
192
- await t . test ( 'paid rewards' , async t => {
192
+ test ( 'paid rewards' , async t => {
193
193
{
194
194
const participants = [ '0x000000000000000000000000000000000000dEa2' ]
195
195
const rewards = [ '9132' ]
@@ -243,8 +243,8 @@ test('scheduled rewards', async t => {
243
243
] )
244
244
}
245
245
} )
246
- await t . test ( 'validate signatures' , async t => {
247
- await t . test ( 'bad argument' , async t => {
246
+ suite ( 'validate signatures' , ( ) => {
247
+ test ( 'bad argument' , async t => {
248
248
const digest = ethers . solidityPackedKeccak256 (
249
249
[ 'address[]' , 'uint256[]' ] ,
250
250
[ [ '0x000000000000000000000000000000000000dEa2' ] , [ '2' ] ]
@@ -261,7 +261,7 @@ test('scheduled rewards', async t => {
261
261
} )
262
262
assert . strictEqual ( res . status , 403 )
263
263
} )
264
- await t . test ( 'bad signer' , async t => {
264
+ test ( 'bad signer' , async t => {
265
265
const participants = [ '0x000000000000000000000000000000000000dEa2' ]
266
266
const scores = [ '2' ]
267
267
const digest = ethers . solidityPackedKeccak256 (
@@ -281,7 +281,7 @@ test('scheduled rewards', async t => {
281
281
assert . strictEqual ( res . status , 403 )
282
282
} )
283
283
} )
284
- await t . test ( 'single scheduled rewards' , async t => {
284
+ test ( 'single scheduled rewards' , async t => {
285
285
{
286
286
const res = await fetch (
287
287
`${ api } /scheduled-rewards/0x000000000000000000000000000000000000dEa2`
0 commit comments