Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add test
  • Loading branch information
marandaneto committed Oct 26, 2020
commit 3b861b7841c38f87d723c17b8f4ebdd39fd7d86f
11 changes: 5 additions & 6 deletions dart/test/hub_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ void main() {
});

test('should install integrations', () {
var called = false;
void integration(Hub hub, SentryOptions options) => called = true;
options.addIntegration(integration);
final hub = Hub(options);
client = MockSentryClient();
hub.bindClient(client);
// TODO: assert that integration(hub, options) has been invoked
Hub(options);

expect(called, true);
});
});

Expand Down Expand Up @@ -192,5 +193,3 @@ void main() {
// could we set [hub.stack] as @visibleForTesting ?
});
}

void integration(Hub hub, SentryOptions options) {}