From 289e6eefb326eb402660c6a74bab54fd645adcc0 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 5 Sep 2022 18:00:33 +0500 Subject: [PATCH] core: move pricing test to e2e tests --- .../__tests__ => __e2e__}/pricing.test.js | 2 +- .../__snapshots__/pricing.test.js.snap | 82 ------------------- 2 files changed, 1 insertion(+), 83 deletions(-) rename packages/core/{api/__tests__ => __e2e__}/pricing.test.js (97%) delete mode 100644 packages/core/api/__tests__/__snapshots__/pricing.test.js.snap diff --git a/packages/core/api/__tests__/pricing.test.js b/packages/core/__e2e__/pricing.test.js similarity index 97% rename from packages/core/api/__tests__/pricing.test.js rename to packages/core/__e2e__/pricing.test.js index 5583832f8..4947d5e3d 100644 --- a/packages/core/api/__tests__/pricing.test.js +++ b/packages/core/__e2e__/pricing.test.js @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -import Pricing from "../pricing"; +import Pricing from "../api/pricing"; test.each(["monthly", "yearly", undefined])(`get %s price`, async (period) => { const pricing = new Pricing(); diff --git a/packages/core/api/__tests__/__snapshots__/pricing.test.js.snap b/packages/core/api/__tests__/__snapshots__/pricing.test.js.snap deleted file mode 100644 index 0797f5d19..000000000 --- a/packages/core/api/__tests__/__snapshots__/pricing.test.js.snap +++ /dev/null @@ -1,82 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`get android pricing tier get monthly android tier: monthly-android-pricing 1`] = ` -Object { - "country": "Pakistan", - "countryCode": "PK", - "discount": 78, - "sku": "com.streetwriters.notesnook.sub.mo.tier3", -} -`; - -exports[`get android pricing tier get yearly android tier: yearly-android-pricing 1`] = ` -Object { - "country": "Pakistan", - "countryCode": "PK", - "discount": 80, - "sku": "com.streetwriters.notesnook.sub.yr.tier3", -} -`; - -exports[`get ios pricing tier get monthly ios tier: monthly-ios-pricing 1`] = ` -Object { - "country": "Pakistan", - "countryCode": "PK", - "discount": 78, - "sku": "com.streetwriters.notesnook.sub.mo.tier3", -} -`; - -exports[`get ios pricing tier get yearly ios tier: yearly-ios-pricing 1`] = ` -Object { - "country": "Pakistan", - "countryCode": "PK", - "discount": 80, - "sku": "com.streetwriters.notesnook.sub.yr.tier3", -} -`; - -exports[`get monthly price: monthly-pricing 1`] = ` -Object { - "country": "Pakistan", - "countryCode": "PK", - "discount": 78, - "price": 0.99, -} -`; - -exports[`get undefined price: monthly-pricing 1`] = ` -Object { - "country": "Pakistan", - "countryCode": "PK", - "discount": 78, - "price": 0.99, -} -`; - -exports[`get web pricing tier get monthly web tier: monthly-web-pricing 1`] = ` -Object { - "country": "Pakistan", - "countryCode": "PK", - "discount": 78, - "sku": "763943", -} -`; - -exports[`get web pricing tier get yearly web tier: yearly-web-pricing 1`] = ` -Object { - "country": "Pakistan", - "countryCode": "PK", - "discount": 80, - "sku": "763945", -} -`; - -exports[`get yearly price: yearly-pricing 1`] = ` -Object { - "country": "Pakistan", - "countryCode": "PK", - "discount": 80, - "price": 9.99, -} -`;