git.delta.rocks / unique-network / refs/commits / bd453421277c

difftreelog

Style fixed

str-mv2021-11-26parent: #8f9861a.patch.diff
in: master

2 files changed

modifiedtests/src/approve.test.tsdiffbeforeafterboth
24} from './util/helpers';24} from './util/helpers';
2525
26chai.use(chaiAsPromised);26chai.use(chaiAsPromised);
27const expect = chai.expect;
2827
29describe('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;
modifiedtests/src/inflation.test.tsdiffbeforeafterboth
25 const totalActualInflation = blockInflation * YEAR / blockInterval;25 const totalActualInflation = blockInflation * YEAR / blockInterval;
2626
27 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 inflation
28 let expectedInflation = totalExpectedInflation / totalActualInflation - 1n;28 const expectedInflation = totalExpectedInflation / totalActualInflation - 1n;
2929
30 expect(Math.abs(Number(expectedInflation))).to.be.lessThanOrEqual(tolerance);30 expect(Math.abs(Number(expectedInflation))).to.be.lessThanOrEqual(tolerance);
31 });31 });