Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+2
-5
@@ -55,7 +55,7 @@ describe("feature flag set-rules command", () => {
|
||||
tempDir = mkdtempSync(join(tmpdir(), "hivegrid-cli-flags-"));
|
||||
vi.clearAllMocks();
|
||||
process.exitCode = undefined;
|
||||
dbMock.$transaction.mockResolvedValue([]);
|
||||
dbMock.$transaction.mockImplementation(async (callback: (transaction: typeof dbMock) => Promise<unknown>) => callback(dbMock));
|
||||
broadcastFlagInvalidationMock.mockResolvedValue(undefined);
|
||||
});
|
||||
|
||||
@@ -129,10 +129,7 @@ describe("feature flag set-rules command", () => {
|
||||
newValue: { rules: null },
|
||||
},
|
||||
});
|
||||
expect(dbMock.$transaction).toHaveBeenCalledWith([
|
||||
dbMock.featureFlag.update.mock.results[0]?.value,
|
||||
dbMock.featureFlagAudit.create.mock.results[0]?.value,
|
||||
]);
|
||||
expect(dbMock.$transaction).toHaveBeenCalledWith(expect.any(Function));
|
||||
expect(broadcastFlagInvalidationMock).toHaveBeenCalledWith("billing.beta");
|
||||
expect(consoleMock.success).toHaveBeenCalledWith('Rules for "billing.beta" updated.');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user