22 lines
515 B
Dart
22 lines
515 B
Dart
|
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);
|
||
|
}
|
||
|
});
|
||
|
}
|