Updating test cases.

This commit is contained in:
mike12345567 2022-05-26 17:31:57 +01:00
parent 3cdda4a1fa
commit db6a150436
2 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,8 @@ describe("/rows", () => {
}
const getQueryUsage = async () => {
return config.doInContext(null, () => quotas.getAllCurrentUsageValue(QuotaUsageType.MONTHLY, MonthlyQuotaName.QUERIES))
const { total } = await config.doInContext(null, () => quotas.getAllCurrentUsageValue(QuotaUsageType.MONTHLY, MonthlyQuotaName.QUERIES))
return total
}
const assertRowUsage = async (expected) => {

View File

@ -4,7 +4,7 @@ const syncApps = jest.fn()
const syncRows = jest.fn()
jest.mock("../usageQuotas/syncApps", () => ({ run: syncApps }) )
jest.mock("../usageQuotas/syncRows", () => ({ run: syncRows }) )
jest.mock("../usageQuotas/syncAppRows", () => ({ run: syncRows }) )
const migration = require("../quotas2")