fix: alot
This commit is contained in:
@@ -131,4 +131,14 @@ void main() {
|
||||
expect(viewModel.loadError, isNull);
|
||||
},
|
||||
);
|
||||
|
||||
test('finds an open tab by name, ignoring case and spaces', () async {
|
||||
viewModel.ensureLoaded();
|
||||
openTabs.add([_tab('Jan'), _tab('Piet')]);
|
||||
await pumpEventQueue();
|
||||
|
||||
expect(viewModel.hasOpenTabNamed(' jan '), true);
|
||||
expect(viewModel.hasOpenTabNamed('Jan', exceptTabId: 'Jan'), false);
|
||||
expect(viewModel.hasOpenTabNamed('Joris'), false);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user