difftreelog
Style fixed
in: master
2 files changed
tests/src/approve.test.tsdiffbeforeafterboth--- a/tests/src/approve.test.ts
+++ b/tests/src/approve.test.ts
@@ -24,7 +24,6 @@
} from './util/helpers';
chai.use(chaiAsPromised);
-const expect = chai.expect;
describe('Integration Test approve(spender, collection_id, item_id, amount):', () => {
let alice: IKeyringPair;
tests/src/inflation.test.tsdiffbeforeafterboth25 const totalActualInflation = blockInflation * YEAR / blockInterval;25 const totalActualInflation = blockInflation * YEAR / blockInterval;262627 const tolerance = 0.00001; // Relative difference per year between theoretical and actual inflation27 const tolerance = 0.00001; // Relative difference per year between theoretical and actual inflation28 let expectedInflation = totalExpectedInflation / totalActualInflation - 1n;28 const expectedInflation = totalExpectedInflation / totalActualInflation - 1n;292930 expect(Math.abs(Number(expectedInflation))).to.be.lessThanOrEqual(tolerance);30 expect(Math.abs(Number(expectedInflation))).to.be.lessThanOrEqual(tolerance);31 });31 });