mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-28 16:06:47 +01:00
core: move pricing test to e2e tests
This commit is contained in:
@@ -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();
|
||||
@@ -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,
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user