mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 08:51:24 +00:00
Adds unit tests for vcore quickstart feature code (#1618)
* Safety checkin * Adding vcoremongo to Main * Safety checkin * Adding vcoremongo to Main * Safety commit * Safety checkin * Adding vcoremongo to Main * Safety commit * Integrating mongo shell * Safety checkin * Adding vcoremongo to Main * Safety commit * Integrating mongo shell * Safety checkin * Safety commit * Enable mongo shell in its own tab * Safety checkin * Adding vcoremongo to Main * Safety commit * Integrating mongo shell * Safety checkin * Safety commit * Safety commit * Integrating mongo shell * Safety checkin * Safety commit * Enable mongo shell in its own tab * Adding message * Integrated mongo shell * Moving Juno endpoint back to prod * Fixed command bar unit tests * Fixing spelling * Adds unit tests for vcore quickstart feature code * Fix lint
This commit is contained in:
@@ -57,4 +57,22 @@ describe("shouldShowQueryPageOptions()", () => {
|
||||
});
|
||||
expect(userContext.apiType).toBe("Mongo");
|
||||
});
|
||||
|
||||
it("should be 'Postgres' for Postgres API", () => {
|
||||
updateUserContext({
|
||||
databaseAccount: {
|
||||
kind: "Postgres",
|
||||
} as DatabaseAccount,
|
||||
});
|
||||
expect(userContext.apiType).toBe("Postgres");
|
||||
});
|
||||
|
||||
it("should be 'VCoreMongo' for vCore Mongo", () => {
|
||||
updateUserContext({
|
||||
databaseAccount: {
|
||||
kind: "VCoreMongo",
|
||||
} as DatabaseAccount,
|
||||
});
|
||||
expect(userContext.apiType).toBe("VCoreMongo");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user