mirror of
https://github.com/KeygraphHQ/juice-shop.git
synced 2026-11-10 10:41:36 -10:00
26 lines
825 B
TypeScript
26 lines
825 B
TypeScript
/*
|
|
* Copyright (c) 2014-2025 Bjoern Kimminich & the OWASP Juice Shop contributors.
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
import * as frisby from 'frisby'
|
|
|
|
const REST_URL = 'http://localhost:3000/rest'
|
|
|
|
describe('/rest/repeat-notification', () => {
|
|
it('GET triggers repeating notification without passing a challenge', () => {
|
|
return frisby.get(REST_URL + '/repeat-notification')
|
|
.expect('status', 200)
|
|
})
|
|
|
|
it('GET triggers repeating notification passing an unsolved challenge', () => {
|
|
return frisby.get(REST_URL + '/repeat-notification?challenge=Retrieve%20Blueprint')
|
|
.expect('status', 200)
|
|
})
|
|
|
|
it('GET triggers repeating notification passing a solved challenge', () => {
|
|
return frisby.get(REST_URL + '/repeat-notification?challenge=Error%20Handling')
|
|
.expect('status', 200)
|
|
})
|
|
})
|