Task: Add cubetiq dart shared library and functions and utils and extensions for developers and completed with configurable

This commit is contained in:
2021-06-01 22:50:34 +07:00
parent c1437f133a
commit 14eaec7633
14 changed files with 211 additions and 47 deletions

View 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);
});
});
}

View File

@@ -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);
});
});
}