Commit 52bdb8b8 authored by kevin's avatar kevin

fix type

parent 68394621
Pipeline #37752056 passed with stages
in 7 minutes and 2 seconds
......@@ -5,13 +5,12 @@ import 'src/fake_no_sql_database.dart';
void main() {
group('no sql manager', () {
DatabaseInterface<CollectionInterface> fakeNoSqlDatabaseFactory() =>
FakeNoSqlDatabase();
FakeNoSqlDatabase fakeNoSqlDatabaseFactory() => FakeNoSqlDatabase();
test('open', () async {
final manager = DatabaseManager(fakeNoSqlDatabaseFactory);
final db = await manager.open();
expect(db is NoSqlDatabaseInterface, isTrue);
expect(db is FakeNoSqlDatabase, isTrue);
expect(db.isOpen, isTrue);
});
......@@ -24,8 +23,7 @@ void main() {
});
group('no sql pool', () {
DatabaseInterface<CollectionInterface> fakeNoSqlDatabaseFactory() =>
FakeNoSqlDatabase();
FakeNoSqlDatabase fakeNoSqlDatabaseFactory() => FakeNoSqlDatabase();
test('open', () async {
final manager = DatabaseManager(fakeNoSqlDatabaseFactory);
......
......@@ -5,13 +5,12 @@ import 'src/fake_sql_database.dart';
void main() {
group('sql manager', () {
DatabaseInterface<TableInterface> fakeSqlDatabaseFactory() =>
FakeSqlDatabase();
FakeSqlDatabase fakeSqlDatabaseFactory() => FakeSqlDatabase();
test('open', () async {
final manager = DatabaseManager(fakeSqlDatabaseFactory);
final db = await manager.open();
expect(db is NoSqlDatabaseInterface, isTrue);
expect(db is FakeSqlDatabase, isTrue);
expect(db.isOpen, isTrue);
});
......@@ -24,8 +23,7 @@ void main() {
});
group('sql pool', () {
DatabaseInterface<TableInterface> fakeSqlDatabaseFactory() =>
FakeSqlDatabase();
FakeSqlDatabase fakeSqlDatabaseFactory() => FakeSqlDatabase();
test('open', () async {
final manager = DatabaseManager(fakeSqlDatabaseFactory);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment