mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 09:22:38 +00:00
Merge pull request #2496 from naturalcrit/fixV3_PreviewTest
Update Jest test for moved legacy homepage
This commit is contained in:
@@ -27,7 +27,7 @@ jobs:
|
|||||||
# fallback to using the latest cache if no exact match is found
|
# fallback to using the latest cache if no exact match is found
|
||||||
- v1-dependencies-
|
- v1-dependencies-
|
||||||
|
|
||||||
- node/install-npm
|
- run: sudo npm install -g npm@8.10.0
|
||||||
- node/install-packages:
|
- node/install-packages:
|
||||||
app-dir: ~/homebrewery
|
app-dir: ~/homebrewery
|
||||||
cache-path: node_modules
|
cache-path: node_modules
|
||||||
|
|||||||
17895
package-lock.json
generated
17895
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -77,6 +77,7 @@
|
|||||||
"mongoose": "^6.7.0",
|
"mongoose": "^6.7.0",
|
||||||
"nanoid": "3.3.4",
|
"nanoid": "3.3.4",
|
||||||
"nconf": "^0.12.0",
|
"nconf": "^0.12.0",
|
||||||
|
"npm": "^8.10.0",
|
||||||
"react": "^16.14.0",
|
"react": "^16.14.0",
|
||||||
"react-dom": "^16.14.0",
|
"react-dom": "^16.14.0",
|
||||||
"react-frame-component": "4.1.3",
|
"react-frame-component": "4.1.3",
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ app.get('/', (req, res, next)=>{
|
|||||||
return next();
|
return next();
|
||||||
});
|
});
|
||||||
|
|
||||||
//Home page v3
|
//Home page legacy
|
||||||
app.get('/legacy', (req, res, next)=>{
|
app.get('/legacy', (req, res, next)=>{
|
||||||
req.brew = {
|
req.brew = {
|
||||||
text : welcomeTextLegacy,
|
text : welcomeTextLegacy,
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ describe('Tests for static pages', ()=>{
|
|||||||
return app.get('/').expect(200);
|
return app.get('/').expect(200);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Home page v3 works', ()=>{
|
it('Home page legacy works', ()=>{
|
||||||
return app.get('/v3_preview').expect(200);
|
return app.get('/legacy').expect(200);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Changelog page works', ()=>{
|
it('Changelog page works', ()=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user