mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 07:53:09 +00:00
fix: the merged tour, home and lightbox changes pass their checks
The demo gate test allows wanderer as the parity harness does, the open tour store is listed in the store registry, the trip chat card's test reads the dates and not the question's hidden label, the lightbox leaves the rtl baseline, and the tours module is formatted.
This commit is contained in:
@@ -77,9 +77,9 @@ import { TourPoiSearchService } from './tour-poi-search.service';
|
||||
import { TourSkiController } from './tour-ski.controller';
|
||||
import { TourSkiService } from './tour-ski.service';
|
||||
import { TourSportWritesMcp } from './tour-sport-writes.mcp';
|
||||
import { TourTrailDetailsService } from './tour-trail-details.service';
|
||||
import { TourStopsMcp } from './tour-stops.mcp';
|
||||
import { TourStopsService } from './tour-stops.service';
|
||||
import { TourTrailDetailsService } from './tour-trail-details.service';
|
||||
import { TourTrailGradeController } from './tour-trail-grade.controller';
|
||||
import { TourTrailGradeService } from './tour-trail-grade.service';
|
||||
import { TourVisitsController } from './tour-visits.controller';
|
||||
|
||||
@@ -15,7 +15,7 @@ import { db as testDb } from '../../../src/db/database';
|
||||
import { DEMO_UNGATED_WRITE_TOOLS, isDemoGatedTool, trekDemoToolGate } from '../../../src/mcp/nest-mcp-policy';
|
||||
import type { McpContext, McpRegistry, McpRegistryListing } from '../../../src/nest-mcp';
|
||||
import { withRequestContext } from '../../../src/nest/database/request-context';
|
||||
import { createUser } from '../../helpers/factories';
|
||||
import { createUser, setAppSetting } from '../../helpers/factories';
|
||||
import { createMcpTestRegistry } from '../../helpers/mcp-test-controllers';
|
||||
import { bootTestApp } from '../../helpers/test-app';
|
||||
import { resetTestDb, setAddonEnabled } from '../../helpers/test-db';
|
||||
@@ -77,6 +77,8 @@ beforeAll(async () => {
|
||||
beforeEach(() => {
|
||||
resetTestDb(testDb);
|
||||
for (const id of Object.values(ADDON_IDS)) setAddonEnabled(testDb, id, true);
|
||||
// The wanderer tools show only while wanderer is allowed under Tours.
|
||||
setAppSetting(testDb, 'tours_wanderer_enabled', 'true');
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user