DEV: Prefix all test names (#238)

This commit is contained in:
Jarek Radosz 2024-09-18 01:49:28 +02:00 committed by GitHub
parent ef820ca2e0
commit 937d099692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

View File

@ -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();

View File

@ -20,7 +20,7 @@ function singleProductPretender() {
});
}
acceptance("Discourse Subscriptions", function (needs) {
acceptance("Subscriptions", function (needs) {
needs.user();
needs.hooks.beforeEach(function () {
stubStripe();

View File

@ -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

View File

@ -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", {

View File

@ -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) {

View File

@ -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",