From 7d38e7fd2ff6eaa9cb77738378886648b63e5273 Mon Sep 17 00:00:00 2001 From: Ethan Bennett Date: Wed, 16 Dec 2020 19:43:42 -0500 Subject: [PATCH] Update test values --- packages/dai-plugin-mcd/test/CdpType.spec.js | 4 ++-- packages/dai-plugin-mcd/test/SystemDataService.spec.js | 2 +- packages/dai-plugin-mcd/test/schemas/computed.spec.js | 10 +++++----- packages/dai-plugin-mcd/test/schemas/vat.spec.js | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/dai-plugin-mcd/test/CdpType.spec.js b/packages/dai-plugin-mcd/test/CdpType.spec.js index c932e3636..14a22fd7e 100644 --- a/packages/dai-plugin-mcd/test/CdpType.spec.js +++ b/packages/dai-plugin-mcd/test/CdpType.spec.js @@ -32,9 +32,9 @@ const scenarios = [ liquidation penalty, annual stability fee] */ const systemValues = { - 'ETH-A': [80, 200, 100000, 1.5, 0.05, '5.0'], + 'ETH-A': [80, 200, 1000000, 1.5, 0.05, '5.0'], // 'ETH-B': [2, 4, 100000, 2, 0.05, '4.0'], - 'BAT-A': [80, 200, 5000, 2, 0.08, '10.5'] + 'BAT-A': [80, 200, 1000000, 2, 0.08, '10.5'] }; describe.each(scenarios)('%s', (ilk, GEM) => { diff --git a/packages/dai-plugin-mcd/test/SystemDataService.spec.js b/packages/dai-plugin-mcd/test/SystemDataService.spec.js index 92a76566e..6933291ae 100644 --- a/packages/dai-plugin-mcd/test/SystemDataService.spec.js +++ b/packages/dai-plugin-mcd/test/SystemDataService.spec.js @@ -23,7 +23,7 @@ test('get annual base rate', async () => { test('get system-wide debt ceiling', async () => { const ceiling = await service.getSystemWideDebtCeiling(); - expect(ceiling).toBe(1000000); + expect(ceiling).toBe(6000000); }); test('get global settlement status', async () => { diff --git a/packages/dai-plugin-mcd/test/schemas/computed.spec.js b/packages/dai-plugin-mcd/test/schemas/computed.spec.js index b71534533..e5bb4c3d0 100644 --- a/packages/dai-plugin-mcd/test/schemas/computed.spec.js +++ b/packages/dai-plugin-mcd/test/schemas/computed.spec.js @@ -321,7 +321,7 @@ test(VAULT, async () => { const expectedLiqPenalty = BigNumber('0.05'); const expectedAnnStabilityFee = 0.04999999999989363; const expectedDebtFloor = BigNumber('100'); - const expectedCollateralDebtAvailable = DAI(99900); + const expectedCollateralDebtAvailable = DAI(999900); const vault = await maker.latest(VAULT, cdpId); @@ -496,7 +496,7 @@ test(COLLATERAL_TYPE_DATA, async () => { const expectedAnnStabilityFee = 0.04999999999989363; const expectedPriceWithSafetyMargin = BigNumber('120'); const expectedDebtFloor = BigNumber('100'); - const expectedCollateralDebtAvailable = DAI(99900); + const expectedCollateralDebtAvailable = DAI(999900); const colData = await maker.latest(COLLATERAL_TYPE_DATA, collateralType); @@ -542,8 +542,8 @@ test(COLLATERAL_DEBT_CEILINGS, async () => { 'ETH-A', 'BAT-A' ]); - expect(debtCeilings['ETH-A'].toNumber()).toEqual(100000); - expect(debtCeilings['BAT-A'].toNumber()).toEqual(5000); + expect(debtCeilings['ETH-A'].toNumber()).toEqual(1000000); + expect(debtCeilings['BAT-A'].toNumber()).toEqual(1000000); }); test(COLLATERAL_DEBT_AVAILABLE, async () => { @@ -552,5 +552,5 @@ test(COLLATERAL_DEBT_AVAILABLE, async () => { 'ETH-A' ); - expect(ethACollateralDebt.toNumber()).toEqual(99900); + expect(ethACollateralDebt.toNumber()).toEqual(999900); }); diff --git a/packages/dai-plugin-mcd/test/schemas/vat.spec.js b/packages/dai-plugin-mcd/test/schemas/vat.spec.js index acf921a90..c719d6741 100644 --- a/packages/dai-plugin-mcd/test/schemas/vat.spec.js +++ b/packages/dai-plugin-mcd/test/schemas/vat.spec.js @@ -147,8 +147,8 @@ test(DEBT_CEILING, async () => { expect(isCurrency(ethADebtCeiling)).toEqual(true); expect(isCurrency(batADebtCeiling)).toEqual(true); - expect(ethADebtCeiling.isEqual(DAI(100000))).toEqual(true); - expect(batADebtCeiling.isEqual(DAI(5000))).toEqual(true); + expect(ethADebtCeiling.isEqual(DAI(1000000))).toEqual(true); + expect(batADebtCeiling.isEqual(DAI(1000000))).toEqual(true); }); test(DEBT_FLOOR, async () => { @@ -214,5 +214,5 @@ test(GLOBAL_DEBT_CEILING, async () => { const globalDebtCeiling = await maker.latest(GLOBAL_DEBT_CEILING); expect(globalDebtCeiling.symbol).toEqual(DAI.symbol); - expect(globalDebtCeiling.toBigNumber()).toEqual(BigNumber('1000000')); + expect(globalDebtCeiling.toBigNumber()).toEqual(BigNumber('6000000')); });