DEV: warns instead of raise exception, test should fail if legit error anyways (#7239)

This commit is contained in:
Joffrey JAFFEUX
2019-03-22 09:23:20 +01:00
committed by GitHub
parent 68fe6b8d53
commit eec7822d7c

View File

@@ -1,6 +1,7 @@
function checkSelectKitIsNotExpanded(selector) {
if (find(selector).hasClass("is-expanded")) {
throw new Error(
// eslint-disable-next-line no-console
console.warn(
"You expected select-kit to be collapsed but it is expanded."
);
}
@@ -8,7 +9,8 @@ function checkSelectKitIsNotExpanded(selector) {
function checkSelectKitIsNotCollapsed(selector) {
if (!find(selector).hasClass("is-expanded")) {
throw new Error(
// eslint-disable-next-line no-console
console.warn(
"You expected select-kit to be expanded but it is collapsed."
);
}