Skip to content

Conversation

@lohanidamodar
Copy link
Member

No description provided.

$this->assertEquals('GET:/v1/mock/tests/general/redirect/done:passed', $output[10]);

if($options['supportUpload']) {
$supportsUpload = $options['supportUpload'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless we don't use this var in other places, I think we can keep it they way it was.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using below

$this->assertEquals($output[11], 'POST:/v1/mock/tests/general/upload:passed');
}

if($options['supportException']) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can leave blank lines reserved for the upload test or even a comment in the code, otherwise every new feature here is going to get a really big block of if conditions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes we need a way, may be simply print some value ('upload not supported yet') to make the outputs length and index consistent, so that we don't need multiple checks, let me know what you think?


$whitelist = ['php', 'cli', 'java', 'node', 'ruby', 'python', 'typescript', 'deno', 'dotnet', 'dart'];

$whitelist = ['dart'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to remove this from the PR

@lohanidamodar
Copy link
Member Author

@eldadfux Looks like Java SDK doesn't support UPLOAD yet

Copy link
Contributor

@TorstenDittmann TorstenDittmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍🏻

@lohanidamodar
Copy link
Member Author

@eldadfux even typescript SDK did not have upload support, I just printed the actual output of upload success to pass the typescript test. Apart from that Dart exception test is ✅

@eldadfux eldadfux merged commit d875e69 into master Mar 20, 2021
@eldadfux
Copy link
Member

Looks good!

@lohanidamodar lohanidamodar deleted the feat-dart-test-exception branch January 16, 2022 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants