configurable/test/dotenv_test.dart
Sambo Chea 649f25b265 - Add mutable configuration provider
- Split tests file
- Fixed and nullable functions
- Able to set or remove config from system config
2021-03-24 16:39:10 +07:00

21 lines
362 B
Dart

import 'package:configurable/dotenv/dotenv.dart';
import 'package:test/test.dart';
void main() {
test('just call env', () {
load();
var result = env['app.title'];
expect('CUBETIQ Solution', equals(result));
});
test('get export variable', () {
load();
var result = env['NAME'];
expect('Sambo Chea', equals(result));
});
}