Fixed regression test suite stubs

refs 3c7a8dead4

- The boot process has been using an asyc method to load the routes file, which is the case now for these tests since the switch to raw boot method instead of mimicking it manually
This commit is contained in:
Naz 2021-12-02 16:10:05 +04:00 committed by naz
parent 51a4a65eec
commit 9e53f36c42

View File

@ -362,7 +362,7 @@ describe('Integration - Web - Site canary', function () {
describe('extended routes.yaml: collections', function () {
describe('2 collections', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {
'/': {templates: ['home']}
},
@ -487,7 +487,7 @@ describe('Integration - Web - Site canary', function () {
describe('no collections', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {
'/something/': {
templates: ['something']
@ -534,7 +534,7 @@ describe('Integration - Web - Site canary', function () {
describe('static permalink route', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {},
collections: {
@ -634,7 +634,7 @@ describe('Integration - Web - Site canary', function () {
describe('primary author permalink', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {},
collections: {
@ -713,7 +713,7 @@ describe('Integration - Web - Site canary', function () {
describe('primary tag permalink', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {},
collections: {
@ -807,7 +807,7 @@ describe('Integration - Web - Site canary', function () {
describe('collection/routes with data key', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {
'/my-page/': {
data: {
@ -972,7 +972,7 @@ describe('Integration - Web - Site canary', function () {
describe('extended routes.yaml: templates', function () {
describe('default template, no template', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {},
collections: {
@ -1035,7 +1035,7 @@ describe('Integration - Web - Site canary', function () {
describe('two templates', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {},
collections: {
@ -1083,7 +1083,7 @@ describe('Integration - Web - Site canary', function () {
describe('home.hbs priority', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {},
collections: {
@ -1155,7 +1155,7 @@ describe('Integration - Web - Site canary', function () {
before(async function () {
localUtils.defaultMocks(sinon, {theme: 'test-theme-channels'});
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {
'/channel1/': {
controller: 'channel',
@ -1484,7 +1484,7 @@ describe('Integration - Web - Site canary', function () {
describe('extended routes.yaml (5): rss override', function () {
before(async function () {
sinon.stub(routeSettingsService, 'loadRouteSettingsSync').get(() => () => ({
sinon.stub(routeSettingsService, 'loadRouteSettings').get(() => () => ({
routes: {
'/podcast/rss/': {
templates: ['podcast/rss'],