Updating test cases.
This commit is contained in:
parent
957c2ba703
commit
e87fd9d0a5
|
@ -35,7 +35,8 @@ describe("/rows", () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getQueryUsage = async () => {
|
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) => {
|
const assertRowUsage = async (expected) => {
|
||||||
|
|
|
@ -4,7 +4,7 @@ const syncApps = jest.fn()
|
||||||
const syncRows = jest.fn()
|
const syncRows = jest.fn()
|
||||||
|
|
||||||
jest.mock("../usageQuotas/syncApps", () => ({ run: syncApps }) )
|
jest.mock("../usageQuotas/syncApps", () => ({ run: syncApps }) )
|
||||||
jest.mock("../usageQuotas/syncRows", () => ({ run: syncRows }) )
|
jest.mock("../usageQuotas/syncAppRows", () => ({ run: syncRows }) )
|
||||||
|
|
||||||
const migration = require("../quotas2")
|
const migration = require("../quotas2")
|
||||||
|
|
Loading…
Reference in New Issue