mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 22:15:12 -04:00
Add test mode (#898)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
e4210ae568
commit
dfc2524bd7
6 changed files with 26 additions and 9 deletions
9
src/utils/is-test-mode.ts
Normal file
9
src/utils/is-test-mode.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export const isTestMode = (): boolean => {
|
||||
return !!process.env.REACT_APP_TEST_MODE
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue