Updating test cases.
This commit is contained in:
parent
3cdda4a1fa
commit
db6a150436
|
@ -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) => {
|
||||
|
|
|
@ -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")
|
||||
|
Loading…
Reference in New Issue