fix coverage

This commit is contained in:
mingda
2020-06-26 13:09:07 +08:00
parent ccce3f9cd8
commit 8de5d8f1ab
6 changed files with 20 additions and 8 deletions

View File

@@ -89,7 +89,7 @@ describe("Admin", () => {
await ctx.DODO.methods.disableBaseDeposit().send(ctx.sendParam(ctx.Supervisor))
await assert.rejects(
ctx.DODO.methods.depositBase(decimalStr("10")).send(ctx.sendParam(lp1)),
/DEPOSIT_BASE_NOT_ALLOWED/
/DEPOSIT_BASE_TOKEN_NOT_ALLOWED/
)
await ctx.DODO.methods.enableBaseDeposit().send(ctx.sendParam(ctx.Deployer))
@@ -99,7 +99,7 @@ describe("Admin", () => {
await ctx.DODO.methods.disableQuoteDeposit().send(ctx.sendParam(ctx.Supervisor))
await assert.rejects(
ctx.DODO.methods.depositQuote(decimalStr("1000")).send(ctx.sendParam(lp1)),
/DEPOSIT_QUOTE_NOT_ALLOWED/
/DEPOSIT_QUOTE_TOKEN_NOT_ALLOWED/
)
await ctx.DODO.methods.enableQuoteDeposit().send(ctx.sendParam(ctx.Deployer))