configurable/test/config_test.dart

15 lines
361 B
Dart
Raw Normal View History

2021-03-24 13:34:03 +07:00
import 'package:configurable/system_config.dart';
import 'package:test/test.dart';
void main() {
test('get system config by key', () {
var key = 'app.name';
var value = 'CUBETIQ';
var result = SystemConfig.getOrNull(key, defaultValue: value);
expect(value, equals(result));
expect(value, equals(SystemConfig.getOrNull(key)));
});
2021-03-24 13:52:20 +07:00
2021-03-24 13:34:03 +07:00
}