Skip to content

Commit

Permalink
feat(enums): AppEnv.CI
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Mar 2, 2022
1 parent f77bcaf commit d504f1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/enums/app-env.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @enum {Lowercase<string>}
*/
enum AppEnv {
CI = 'ci',
DEV = 'development',
PROD = 'production',
STG = 'staging',
Expand Down
1 change: 1 addition & 0 deletions src/guards/__tests__/is-app-env.guard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe('unit:guards/isAppEnv', () => {
const cases: Case[] = [
{ expected: false, state: 'keyof AppEnv', value: 'PROD' },
{ expected: false, state: 'random string', value: 'some-random-string' },
{ expected: true, state: 'AppEnv.CI', value: AppEnv.CI },
{ expected: true, state: 'AppEnv.DEV', value: AppEnv.DEV },
{ expected: true, state: 'AppEnv.STG', value: AppEnv.STG },
{ expected: true, state: 'AppEnv.PROD', value: AppEnv.PROD },
Expand Down

0 comments on commit d504f1c

Please sign in to comment.