mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-09 04:25:57 +00:00
fixed lint error for MongoIndexPolicyComponentTest
This commit is contained in:
@@ -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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user