core: move pricing test to e2e tests

This commit is contained in:
Abdullah Atta
2022-09-05 18:00:33 +05:00
parent 54ab117417
commit 289e6eefb3
2 changed files with 1 additions and 83 deletions

View File

@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import Pricing from "../pricing";
import Pricing from "../api/pricing";
test.each(["monthly", "yearly", undefined])(`get %s price`, async (period) => {
const pricing = new Pricing();

View File

@@ -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,
}
`;