Skip to content

Commit

Permalink
modified
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhin29 committed Dec 20, 2023
1 parent 1c2c643 commit 377dc17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CustomDrawerViewModel extends BaseModel {
/// Instance of TutorialCoachMark responsible for providing tutorial guidance.
late TutorialCoachMark tutorialCoachMark;
late User _currentUser;
late List<OrgInfo> _switchAbleOrg;
late List<OrgInfo> _switchAbleOrg = [];
bool _disposed = false;
OrgInfo? _selectedOrg;
StreamSubscription? _currentOrganizationStreamSubscription;
Expand Down
4 changes: 4 additions & 0 deletions test/view_model_tests/custom_drawer_view_model_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,9 @@ void main() {
final model = CustomDrawerViewModel();
expect(model.selectedOrg, isNull);
});
test('switchAbleOrg should be null initially', () {
final model = CustomDrawerViewModel();
expect(model.switchAbleOrg, []);
});
});
}

0 comments on commit 377dc17

Please sign in to comment.