Update test cases
This commit is contained in:
parent
35ea05bdef
commit
6c8decd77c
2 changed files with 4 additions and 3 deletions
|
@ -37,7 +37,7 @@
|
||||||
* Migrated angel_orm_generator to 4.0.0 (0/0 tests passed)
|
* Migrated angel_orm_generator to 4.0.0 (0/0 tests passed)
|
||||||
* Migrated angel_migration_runner to 3.0.0 (0/0 tests passed)
|
* Migrated angel_migration_runner to 3.0.0 (0/0 tests passed)
|
||||||
* Migrated angel_orm_test to 3.0.0 (0/0 tests passed)
|
* Migrated angel_orm_test to 3.0.0 (0/0 tests passed)
|
||||||
* Migrated angel_orm_postgres to 3.0.0 (46/54 tests passed)
|
* Migrated angel_orm_postgres to 3.0.0 (48/54 tests passed)
|
||||||
* Update orm-sdk-2.12.x boilerplate (in progress) <= Milestone 2
|
* Update orm-sdk-2.12.x boilerplate (in progress) <= Milestone 2
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,8 @@ manyToManyTests(FutureOr<QueryExecutor> Function() createExecutor,
|
||||||
..email = 'Nelson';
|
..email = 'Nelson';
|
||||||
var userOpt = await userQuery.insert(executor);
|
var userOpt = await userQuery.insert(executor);
|
||||||
expect(userOpt.isPresent, true);
|
expect(userOpt.isPresent, true);
|
||||||
userOpt.ifPresent((user) async {
|
if (userOpt.isPresent) {
|
||||||
|
var user = userOpt.value;
|
||||||
expect(user.roles, isEmpty);
|
expect(user.roles, isEmpty);
|
||||||
|
|
||||||
// Fetch again, just to be doubly sure.
|
// Fetch again, just to be doubly sure.
|
||||||
|
@ -144,6 +145,6 @@ manyToManyTests(FutureOr<QueryExecutor> Function() createExecutor,
|
||||||
fetchedOpt.ifPresent((fetched) {
|
fetchedOpt.ifPresent((fetched) {
|
||||||
expect(fetched.roles, isEmpty);
|
expect(fetched.roles, isEmpty);
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue