platform/angel_orm_test/lib/src/cases/standalone.dart

18 lines
495 B
Dart
Raw Normal View History

2019-02-14 18:36:53 +00:00
import 'package:angel_orm/angel_orm.dart';
import 'package:angel_orm_test/angel_orm_test.dart';
import 'package:test/test.dart';
2019-02-14 19:23:37 +00:00
void Function() standaloneTests(QueryExecutor Function() executorFn) {
return () {
test('insert one', () async {
var executor = executorFn();
var query = TodoQuery();
query.values
..isComplete = false
..text = 'Clean your dirty room';
var todo = await query.insert(executor);
print(todo.toJson());
});
};
2019-02-14 18:36:53 +00:00
}