Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change HTML-comment spoilers into persistent code
Fixes issue from Angular compiler removing all comments, thus making the "Redirect Tier 1" and "Login Support Team" challenge impossible to solve without cheating.
- Loading branch information
1 parent
66333bc
commit 3f0af41
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const frisby = require('frisby') | ||
|
||
const URL = 'http://localhost:3000' | ||
|
||
describe('/api', () => { | ||
it('GET main.js contains Gratipay URL', () => { | ||
return frisby.get(URL + '/main.js') | ||
.expect('status', 200) | ||
.expect('bodyContains', '/redirect?to=https://gratipay.com/juice-shop') | ||
}) | ||
|
||
it('GET main.js contains password hint for support team', () => { | ||
return frisby.get(URL + '/main.js') | ||
.expect('status', 200) | ||
.expect('bodyContains', '@echipa de suport: Secretul nostru comun este \\xeenc\\u0103 Caoimhe cu parola de master gol!') | ||
}) | ||
}) |