Skip to content

Commit 3ec3a11

Browse files
committed
Removed app title from env
1 parent 70c482a commit 3ec3a11

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

script/example.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { env } from '../src/environment';
55
* Do something!
66
*/
77
export async function example(): Promise<void> {
8-
console.log('App Name: ', env.APP_TITLE);
98
console.log('Environment: ', env.NODE_ENV);
109
}
1110

src/environment.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { AppConfig, configure } from 'ts-appconfig';
44
* Environment Variables Schema
55
*/
66
export class Environment extends AppConfig {
7-
readonly APP_TITLE = 'ts-task-queue';
87
}
98

109
/**

test/spec/environment.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,4 @@ describe('Environment', () => {
55
it('can load', () => {
66
expect(env).toBeDefined();
77
});
8-
9-
it('has app_title key', () => {
10-
expect(typeof env.APP_TITLE).toBe(typeof 'string');
11-
});
128
});

0 commit comments

Comments
 (0)