mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
refactor: cell data transform logic (#5039)
* refactor: cell data transform logic * chore: remove redundant select option event * chore: adapt tests to changes
This commit is contained in:
@ -91,12 +91,19 @@ void main() {
|
||||
"Expect 3 but receive ${bloc.state.options.length}. Options: ${bloc.state.options}",
|
||||
);
|
||||
|
||||
bloc.add(SelectOptionCellEditorEvent.deleteOption(bloc.state.options[0]));
|
||||
await gridResponseFuture();
|
||||
assert(
|
||||
bloc.state.options.length == 2,
|
||||
"Expect 2 but receive ${bloc.state.options.length}. Options: ${bloc.state.options}",
|
||||
);
|
||||
|
||||
bloc.add(const SelectOptionCellEditorEvent.deleteAllOptions());
|
||||
await gridResponseFuture();
|
||||
|
||||
assert(
|
||||
bloc.state.options.isEmpty,
|
||||
"Expect empty but receive ${bloc.state.options.length}",
|
||||
"Expect empty but receive ${bloc.state.options.length}. Options: ${bloc.state.options}",
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user