Merge branch 'update_to_webpack_5' of https://github.com/Azure/cosmos-explorer into update_to_webpack_5

This commit is contained in:
hardiknai-techm
2021-05-27 10:41:47 +05:30
2 changed files with 8 additions and 7 deletions

View File

@@ -109,12 +109,13 @@ describe("MongoIndexingPolicyComponent", () => {
expect(mongoIndexingPolicyComponent.isMongoIndexingPolicyDiscardable()).toEqual( expect(mongoIndexingPolicyComponent.isMongoIndexingPolicyDiscardable()).toEqual(
isMongoIndexingPolicyDiscardable isMongoIndexingPolicyDiscardable
); );
if (mongoWarningNotificationMessage) {
const elementAsString = renderToString(mongoIndexingPolicyComponent.getMongoWarningNotificationMessage()); const warningNotificationElementAsString = renderToString(
expect(elementAsString).toContain(mongoWarningNotificationMessage); mongoIndexingPolicyComponent.getMongoWarningNotificationMessage()
} else { );
expect(mongoIndexingPolicyComponent.getMongoWarningNotificationMessage()).toBeUndefined(); expect(warningNotificationElementAsString.includes(mongoWarningNotificationMessage)).toEqual(
} !!mongoWarningNotificationMessage
);
} }
); );
}); });