DEV: Prefix all test names (#238)
This commit is contained in:
parent
ef820ca2e0
commit
937d099692
|
@ -3,7 +3,7 @@ import { test } from "qunit";
|
|||
import { acceptance, count } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { stubStripe } from "discourse/plugins/discourse-subscriptions/helpers/stripe";
|
||||
|
||||
acceptance("Discourse Subscriptions", function (needs) {
|
||||
acceptance("Subscriptions", function (needs) {
|
||||
needs.user();
|
||||
needs.hooks.beforeEach(function () {
|
||||
stubStripe();
|
||||
|
|
|
@ -20,7 +20,7 @@ function singleProductPretender() {
|
|||
});
|
||||
}
|
||||
|
||||
acceptance("Discourse Subscriptions", function (needs) {
|
||||
acceptance("Subscriptions", function (needs) {
|
||||
needs.user();
|
||||
needs.hooks.beforeEach(function () {
|
||||
stubStripe();
|
||||
|
|
|
@ -4,10 +4,10 @@ import componentTest, {
|
|||
} from "discourse/tests/helpers/component-test";
|
||||
import { count, discourseModule } from "discourse/tests/helpers/qunit-helpers";
|
||||
|
||||
discourseModule("payment-options", function (hooks) {
|
||||
discourseModule("Subscriptions | payment-options", function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
componentTest("Discourse Subscriptions payment options have no plans", {
|
||||
componentTest("payment options have no plans", {
|
||||
template: hbs`{{payment-options plans=plans}}`,
|
||||
|
||||
async test(assert) {
|
||||
|
@ -21,7 +21,7 @@ discourseModule("payment-options", function (hooks) {
|
|||
},
|
||||
});
|
||||
|
||||
componentTest("Discourse Subscriptions payment options has content", {
|
||||
componentTest("payment options has content", {
|
||||
template: hbs`{{payment-options
|
||||
plans=plans
|
||||
selectedPlan=selectedPlan
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
query,
|
||||
} from "discourse/tests/helpers/qunit-helpers";
|
||||
|
||||
discourseModule("payment-plan", function (hooks) {
|
||||
discourseModule("Subscriptions | payment-plan", function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
componentTest("Payment plan subscription button rendered", {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { setupTest } from "ember-qunit";
|
|||
import { module, test } from "qunit";
|
||||
import { formatCurrency } from "discourse/plugins/discourse-subscriptions/discourse/helpers/format-currency";
|
||||
|
||||
module("Unit | Helper | format-currency", function (hooks) {
|
||||
module("Subscriptions | Unit | Helper | format-currency", function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test("it formats USD correctly", function (assert) {
|
|
@ -1,7 +1,7 @@
|
|||
import { module, test } from "qunit";
|
||||
import Plan from "discourse/plugins/discourse-subscriptions/discourse/models/plan";
|
||||
|
||||
module("discourse-patrons:model:plan", function () {
|
||||
module("Subscriptions | Unit | Model | plan", function () {
|
||||
test("subscriptionRate", function (assert) {
|
||||
const plan = Plan.create({
|
||||
unit_amount: "2399",
|
Loading…
Reference in New Issue