Skip to content

Commit d027cea

Browse files
committed
refactor(env): change behavior of env casting
1 parent 8256f16 commit d027cea

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/Unit/ConfigTest.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ test.group('ConfigTest', group => {
2727
await new Folder(Path.config()).remove()
2828
})
2929

30-
test('should be able to get full configurations values from Config class', ({ assert }) => {
30+
test('should be able to get all configurations values from Config class', ({ assert }) => {
31+
const configs = Config.get()
32+
33+
assert.deepEqual(configs.app, { name: 'Athenna', env: 'test' })
34+
assert.deepEqual(configs.database, { username: 'Athenna' })
35+
})
36+
37+
test('should be able to get full configurations values of one file from Config class', ({ assert }) => {
3138
const app = Config.get('app')
3239

3340
assert.deepEqual(app, {

0 commit comments

Comments
 (0)