difftreelog
Style fixed
in: master
2 files changed
tests/src/approve.test.tsdiffbeforeafterboth24} from './util/helpers';24} from './util/helpers';252526chai.use(chaiAsPromised);26chai.use(chaiAsPromised);27const expect = chai.expect;282729describe('Integration Test approve(spender, collection_id, item_id, amount):', () => {28describe('Integration Test approve(spender, collection_id, item_id, amount):', () => {30 let alice: IKeyringPair;29 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 });