Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Picodes committed Oct 16, 2023
1 parent 8cdd27d commit 1e30a86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 49 deletions.
46 changes: 0 additions & 46 deletions github/workflows/ci.yml

This file was deleted.

6 changes: 3 additions & 3 deletions tests/overclaims.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { expect } from 'chai';
import { describe, it } from 'node:test';

import { DisputeContext } from '../src/bot/context';
import { checkOverclaimedRewards } from '../src/bot/runner';
import { checkHolderValidity, checkOverclaimedRewards } from '../src/bot/runner';
import { validateHolders } from '../src/bot/validity';
import ConsoleLogger from '../src/helpers/logger/ConsoleLogger';
import { BotError, MerklReport, Resolver, StepResult } from '../src/types/bot';
import ManualChainProvider from './helpers/ManualChainProvider';
import ManualMerkleRootsProvider from './helpers/ManualMerkleRootsProvider';
import { createActiveDistribution, createClaims, createTree } from './helpers/testData';
import { validateHolders } from '../src/bot/validity';

describe('Overclaim detections', async function () {
it('Should catch on holder having overclaimed', async function () {
Expand All @@ -31,7 +31,7 @@ describe('Overclaim detections', async function () {

const holdersReport = await checkHolderValidity(testContext, testReport);
const report = await checkOverclaimedRewards(testContext, holdersReport.res.report);

expect(report.err).to.equal(true);
report.err && expect(report.res.code).to.equal(BotError.AlreadyClaimed);
});
Expand Down

0 comments on commit 1e30a86

Please sign in to comment.