1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

Updating test cases.

This commit is contained in:
mike12345567 2022-05-26 17:31:57 +01:00
parent 957c2ba703
commit e87fd9d0a5
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")