Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
♻️ Skip test for Stripe
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Sep 8, 2020
1 parent ff44de6 commit 9b760e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/init-tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logError, success, warn } from "@staart/errors";
import { logError, success, warn, info } from "@staart/errors";
import { sendMail, setupTransporter } from "@staart/mail";
import { ELASTIC_INSTANCES_INDEX, TEST_EMAIL } from "./_staart/config";
import { elasticSearchIndex } from "./_staart/helpers/elasticsearch";
Expand Down Expand Up @@ -43,6 +43,7 @@ class Database implements Test {
class Stripe implements Test {
name = "Stripe";
async test() {
if (!config("enableStripePayments")) return info("Skipped");
const prices = await getProductPricing();
success(`Got ${prices.data.length} pricing plans`);
}
Expand Down

0 comments on commit 9b760e1

Please sign in to comment.