Updating error message on mongo collection create (#118)

* 1) Updated mongo collection create pane to display a better error when a shard key is ill formed.
2) Updated an error message to use double quotes since no string interpolation is used. I thought it was included in a previoue PR but I guess the change didn't get staged.
This commit is contained in:
vchske
2020-08-06 10:56:40 -07:00
committed by GitHub
parent a64109ebaa
commit d45af21996
4 changed files with 83 additions and 81 deletions

View File

@@ -373,12 +373,12 @@ describe("PricingUtils Tests", () => {
expect(value).toBe(1);
});
it("should return 1 for -1", () => {
it("should return -1 for -1", () => {
const value = PricingUtils.normalizeNumber(-1);
expect(value).toBe(-1);
});
it("should return 1 for 0.1", () => {
it("should return 0 for 0.1", () => {
const value = PricingUtils.normalizeNumber(0.1);
expect(value).toBe(0);
});