We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test('passing no values yields default value when defined', () { var optionValue; return new FunctionScript(({@Option(allowMultiple: true, defaultsTo: 'x') option}) { optionValue = option; }).execute([]).then((_) { expect(optionValue, ['x']); }); }); test('passing no values yields empty List when default value is null', () { var optionValue; return new FunctionScript(({@Option(allowMultiple: true) option}) { optionValue = option; }).execute([]).then((_) { expect(optionValue, []); }); });
Both of the above tests currently, because the option is just assigned it's default value (even when it's null).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Both of the above tests currently, because the option is just assigned it's default value (even when it's null).
The text was updated successfully, but these errors were encountered: