Open
Description
Description
The Dart API tests for this plugin (located here: https://github.com/ThexXTURBOXx/flutter_web_auth_2/blob/master/flutter_web_auth_2/test/flutter_web_auth_2_test.dart) have a couple problems:
- The 'invalid scheme' test fails.
- The tests are inherently meaningless because they only test the mock defined in the
setUp
call.
Minimal Reproduction
To reproduce: run the tests.
Exception or Error
Expected: throws <Instance of 'ArgumentError'>
Actual: <Instance of 'Future<String>'>
Which: threw PlatformException:<PlatformException(error, Expected: 'foobar'
Actual: 'foobar://test'
Which: is different. Both strings start the same, but the actual value also has the following trailing characters: ://test
, null, null)>
Expected Behaviour
The tests should pass and they should verify the behavior of the actual implementation, not a mock.
Screenshots
No response
Additional context
No response
Device
NA
OS
NA
Browser
NA
Flutter version
NA
flutter_web_auth_2 version
NA
Checklist
- I have read and followed the entire troubleshooting guide and it has not provided the solution I need.
- I have provided all the information I can.