2021-03-24 13:52:20 +07:00
|
|
|
import 'package:configurable/dotenv/dotenv.dart';
|
|
|
|
import 'package:test/test.dart';
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
test('just call env', () {
|
|
|
|
load();
|
|
|
|
|
2021-03-24 16:39:10 +07:00
|
|
|
var result = env['app.title'];
|
2021-03-24 13:52:20 +07:00
|
|
|
|
|
|
|
expect('CUBETIQ Solution', equals(result));
|
|
|
|
});
|
|
|
|
|
|
|
|
test('get export variable', () {
|
|
|
|
load();
|
|
|
|
|
|
|
|
var result = env['NAME'];
|
|
|
|
|
|
|
|
expect('Sambo Chea', equals(result));
|
|
|
|
});
|
|
|
|
}
|