@@ -377,7 +377,7 @@ contract("GithubVerification", async (accounts) => {
377
377
* OOOOOO_____OOO_____
378
378
*
379
379
*/
380
- xit ( "Should give correct validity at given timestamp even after verifyDayThreshold change" , async ( ) => {
380
+ it ( "Should give correct validity at given timestamp even after verifyDayThreshold change" , async ( ) => {
381
381
// Create a snapshot we can return to after manually increasing time on the chain
382
382
const snapshotA = await snapshot ( ) ;
383
383
try {
@@ -428,12 +428,12 @@ contract("GithubVerification", async (accounts) => {
428
428
stamps = await contractInstance . getStampsAt ( alice , timestamp + days ( VERIFY_DAY_THRESHOLD ) ) ;
429
429
assert ( stamps . length === 0 , "Expected address to be invalid at this timestamp; length of stamps array is not equal to 0" ) ;
430
430
431
- // stamps = await contractInstance.getStampsAt(alice, newTimestamp + 60);
432
- // assert(stamps.length === 1, "Length of stamps array is not equal to 1");
433
- // assert(stamps[0][0] === "github", "Provider id should be github");
434
- // assert(stamps[0][1] === userHash, "Userhashes not equal");
435
- // assert(stamps[0][2][0] == timestamp, "Old timestamps not equal");
436
- // assert(stamps[0][2][1] == newTimestamp, "New timestamps not equal");
431
+ stamps = await contractInstance . getStampsAt ( alice , newTimestamp + 60 ) ;
432
+ assert ( stamps . length === 1 , "Length of stamps array is not equal to 1" ) ;
433
+ assert ( stamps [ 0 ] [ 0 ] === "github" , "Provider id should be github" ) ;
434
+ assert ( stamps [ 0 ] [ 1 ] === userHash , "Userhashes not equal" ) ;
435
+ assert ( stamps [ 0 ] [ 2 ] [ 0 ] == timestamp , "Old timestamps not equal" ) ;
436
+ assert ( stamps [ 0 ] [ 2 ] [ 1 ] == newTimestamp , "New timestamps not equal" ) ;
437
437
438
438
// stamps = await contractInstance.getStampsAt(alice, newTimestamp + VERIFY_DAY_THRESHOLD / 2)
439
439
// assert(stamps.length === 0, "Expected address to be invalid at this timestamp; length of stamps array is not equal to 0");
0 commit comments