0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Merge pull request #2496 from naturalcrit/fixV3_PreviewTest

Update Jest test  for moved legacy homepage
This commit is contained in:
Trevor Buckner
2022-11-10 21:55:32 -05:00
committed by GitHub
5 changed files with 29173 additions and 22623 deletions

View File

@@ -27,7 +27,7 @@ jobs:
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- node/install-npm
- run: sudo npm install -g npm@8.10.0
- node/install-packages:
app-dir: ~/homebrewery
cache-path: node_modules
@@ -55,13 +55,13 @@ jobs:
at: .
# run tests!
- run:
- run:
name: Test - Basic
command: npm run test:basic
- run:
- run:
name: Test - Mustache Spans
command: npm run test:mustache-span
- run:
- run:
name: Test - Routes
command: npm run test:route
@@ -71,4 +71,4 @@ workflows:
- build
- test:
requires:
- build
- build

51779
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -77,6 +77,7 @@
"mongoose": "^6.7.0",
"nanoid": "3.3.4",
"nconf": "^0.12.0",
"npm": "^8.10.0",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-frame-component": "4.1.3",

View File

@@ -92,7 +92,7 @@ app.get('/', (req, res, next)=>{
return next();
});
//Home page v3
//Home page legacy
app.get('/legacy', (req, res, next)=>{
req.brew = {
text : welcomeTextLegacy,

View File

@@ -9,8 +9,8 @@ describe('Tests for static pages', ()=>{
return app.get('/').expect(200);
});
it('Home page v3 works', ()=>{
return app.get('/v3_preview').expect(200);
it('Home page legacy works', ()=>{
return app.get('/legacy').expect(200);
});
it('Changelog page works', ()=>{