forked from cubetiq/cubetiq_dart_shared
Task: Add cubetiq dart shared library and functions and utils and extensions for developers and completed with configurable
This commit is contained in:
20
test/cubetiq_configurable_test.dart
Normal file
20
test/cubetiq_configurable_test.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:test/test.dart';
|
||||
|
||||
import 'package:cubetiq/configurable.dart';
|
||||
|
||||
void main() {
|
||||
group('A simple configurable provider and functions', () {
|
||||
setUp(() {
|
||||
print('Register provider...');
|
||||
SystemConfig.setProvider(SimpleConfigurationProvider());
|
||||
|
||||
// Set config here
|
||||
setConfig('hello', 'World');
|
||||
});
|
||||
|
||||
test('Get it back!', () {
|
||||
var hello = getConfigOrNull('hello');
|
||||
expect('World', hello);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
import 'package:cubetiq_dart_shared/cubetiq_dart_shared.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
group('A group of tests', () {
|
||||
final awesome = Awesome();
|
||||
|
||||
setUp(() {
|
||||
// Additional setup goes here.
|
||||
});
|
||||
|
||||
test('First Test', () {
|
||||
expect(awesome.isAwesome, isTrue);
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user