🐛 Fixed public/members.js request path

- removed trailing slash typo
- moved tests out of regression & renamed
This commit is contained in:
Hannah Wolfe 2020-04-27 12:44:00 +01:00
parent cd04262889
commit 4eeb8604dd
2 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@ function getMembersHelper() {
const stripeSecretToken = stripePaymentProcessor.config.secret_token;
const stripePublicToken = stripePaymentProcessor.config.public_token;
let membersHelper = `<script defer src="${getAssetUrl('public/members.js/', true)}"></script>`;
let membersHelper = `<script defer src="${getAssetUrl('public/members.js', true)}"></script>`;
if (!!stripeSecretToken && stripeSecretToken !== '' && !!stripePublicToken && stripePublicToken !== '') {
membersHelper += '<script src="https://js.stripe.com/v3/"></script>';
}

View File

@ -1,16 +1,16 @@
const should = require('should');
const sinon = require('sinon');
const supertest = require('supertest');
const testUtils = require('../../utils');
const configUtils = require('../../utils/configUtils');
const settingsCache = require('../../../core/server/services/settings/cache');
const testUtils = require('../utils');
const configUtils = require('../utils/configUtils');
const settingsCache = require('../../core/server/services/settings/cache');
const ghost = testUtils.startGhost;
// NOTE: if only this suite is run some of the tests will fail due to
// @TODO: if only this suite is run some of the tests will fail due to
// wrong template loading issues which would need to be investigated
// As a workaround run it with some of other tests e.g. "frontend_spec"
describe('Integration - Web - Members', function () {
describe('Basic Members Routes', function () {
let request;
before(function () {