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'; ...@@ -5,13 +5,12 @@ import 'src/fake_no_sql_database.dart';
void main() { void main() {
group('no sql manager', () { group('no sql manager', () {
DatabaseInterface<CollectionInterface> fakeNoSqlDatabaseFactory() => FakeNoSqlDatabase fakeNoSqlDatabaseFactory() => FakeNoSqlDatabase();
FakeNoSqlDatabase();
test('open', () async { test('open', () async {
final manager = DatabaseManager(fakeNoSqlDatabaseFactory); final manager = DatabaseManager(fakeNoSqlDatabaseFactory);
final db = await manager.open(); final db = await manager.open();
expect(db is NoSqlDatabaseInterface, isTrue); expect(db is FakeNoSqlDatabase, isTrue);
expect(db.isOpen, isTrue); expect(db.isOpen, isTrue);
}); });
...@@ -24,8 +23,7 @@ void main() { ...@@ -24,8 +23,7 @@ void main() {
}); });
group('no sql pool', () { group('no sql pool', () {
DatabaseInterface<CollectionInterface> fakeNoSqlDatabaseFactory() => FakeNoSqlDatabase fakeNoSqlDatabaseFactory() => FakeNoSqlDatabase();
FakeNoSqlDatabase();
test('open', () async { test('open', () async {
final manager = DatabaseManager(fakeNoSqlDatabaseFactory); final manager = DatabaseManager(fakeNoSqlDatabaseFactory);
......
...@@ -5,13 +5,12 @@ import 'src/fake_sql_database.dart'; ...@@ -5,13 +5,12 @@ import 'src/fake_sql_database.dart';
void main() { void main() {
group('sql manager', () { group('sql manager', () {
DatabaseInterface<TableInterface> fakeSqlDatabaseFactory() => FakeSqlDatabase fakeSqlDatabaseFactory() => FakeSqlDatabase();
FakeSqlDatabase();
test('open', () async { test('open', () async {
final manager = DatabaseManager(fakeSqlDatabaseFactory); final manager = DatabaseManager(fakeSqlDatabaseFactory);
final db = await manager.open(); final db = await manager.open();
expect(db is NoSqlDatabaseInterface, isTrue); expect(db is FakeSqlDatabase, isTrue);
expect(db.isOpen, isTrue); expect(db.isOpen, isTrue);
}); });
...@@ -24,8 +23,7 @@ void main() { ...@@ -24,8 +23,7 @@ void main() {
}); });
group('sql pool', () { group('sql pool', () {
DatabaseInterface<TableInterface> fakeSqlDatabaseFactory() => FakeSqlDatabase fakeSqlDatabaseFactory() => FakeSqlDatabase();
FakeSqlDatabase();
test('open', () async { test('open', () async {
final manager = DatabaseManager(fakeSqlDatabaseFactory); 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