init flutter shared project
This commit is contained in:
21
test/cubetiq_flutter_shared_test.dart
Normal file
21
test/cubetiq_flutter_shared_test.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:cubetiq_flutter_shared/cubetiq_flutter_shared.dart';
|
||||
|
||||
void main() {
|
||||
test('adds one to input values', () async {
|
||||
var result = MyFunction.asUpperCaseThenTrim(" Hello then worlD ");
|
||||
|
||||
print("Result => $result");
|
||||
|
||||
expect("HELLO THEN WORLD", equals(result));
|
||||
|
||||
try {
|
||||
var response = await Dio().get('http://localhost:8090');
|
||||
print(response);
|
||||
} catch (e) {
|
||||
print(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user