Skip to content

Update test.js to remove the test scenario where the API tries to translate without internet#12

Merged
vitalets merged 4 commits into
vitalets:masterfrom
rawr51919:patch-1
Apr 1, 2019
Merged

Update test.js to remove the test scenario where the API tries to translate without internet#12
vitalets merged 4 commits into
vitalets:masterfrom
rawr51919:patch-1

Conversation

@rawr51919

@rawr51919 rawr51919 commented Mar 19, 2019

Copy link
Copy Markdown

Add a test scenario to attempt the translation of text without an internet connection as this was in the todo list codewise (it's meant to always fail, but that part of it has yet to be coded).
This has been removed as there's not much use to this test case anyway.

Add a test scenario to attempt the translation of text without an internet connection as this was in the todo list codewise (it's meant to always fail, but that part of it has yet to be coded).
@rawr51919 rawr51919 changed the title Update test.js Update test.js to add a test scenario for when there's no internet connection Mar 19, 2019
@vitalets

Copy link
Copy Markdown
Owner

Frankly speaking I don't see any profit from this test. I suggest just to remove it.

@rawr51919

rawr51919 commented Mar 20, 2019

Copy link
Copy Markdown
Author

Considering that it isn't easy to simulate the loss of an internet connection in JavaScript, this test case has to be removed. This has been done in the latest commit.

Updates test.js to remove the 'try to translate text without an internet connection' test.
@rawr51919 rawr51919 changed the title Update test.js to add a test scenario for when there's no internet connection Update test.js to remove the test scenario where the API tries to translate without internet Mar 20, 2019
@codecov-io

codecov-io commented Mar 20, 2019

Copy link
Copy Markdown

Codecov Report

Merging #12 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #12   +/-   ##
=======================================
  Coverage   92.42%   92.42%           
=======================================
  Files           2        2           
  Lines          66       66           
=======================================
  Hits           61       61           
  Misses          5        5

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1bd6a01...8260ab5. Read the comment docs.

Comment thread test.js
Add back the newlines.
Remove unnecessary indents in the newlines.
@rawr51919

Copy link
Copy Markdown
Author

Not only did I add them back in, but I also added others to make it easier to read than it was beforehand.

@rawr51919

rawr51919 commented Mar 20, 2019

Copy link
Copy Markdown
Author

Not only have the changes from this PR been moved to PR #15, but that PR also addresses an issue that had been previously resolved in the unmaintained upstream, but was never merged. Due to this, this PR is hereby closed.

@rawr51919 rawr51919 closed this Mar 20, 2019
@rawr51919
rawr51919 deleted the patch-1 branch March 20, 2019 16:19
@rawr51919
rawr51919 restored the patch-1 branch March 21, 2019 15:19
@rawr51919

Copy link
Copy Markdown
Author

Reopening as part of the separation requested in PR #15.

@rawr51919 rawr51919 reopened this Mar 21, 2019
@vitalets
vitalets merged commit 9682880 into vitalets:master Apr 1, 2019
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.

3 participants