Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Implemented goBack Functionality #42

Merged
merged 5 commits into from Dec 22, 2018
Merged

Implemented goBack Functionality #42

merged 5 commits into from Dec 22, 2018

Conversation

tharun208
Copy link
Contributor

  • Added GoBack Functionality
  • Added tests for GoBack Function

src/api/Page.ts Outdated
@@ -302,6 +302,9 @@ class Page extends EventEmitter {
})
`) as TResult
}
async goBack(): Promise<string> {
Copy link
Owner

Choose a reason for hiding this comment

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

I believe that it doesn't return anything, so it should be Promise<void>

src/api/Page.ts Outdated
@@ -302,6 +302,9 @@ class Page extends EventEmitter {
})
`) as TResult
}
async goBack(): Promise<string> {
return this._send('WebDriver:Back', {} ) as Promise<string>
Copy link
Owner

Choose a reason for hiding this comment

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

which also means no return here, just await

@tharun208
Copy link
Contributor Author

Fixed the changes !

@deepsweet
Copy link
Owner

thanks!

do you mind fixing lint issues? https://travis-ci.org/deepsweet/foxr/jobs/469398109

you can check it locally by running yarn start lint

@tharun208
Copy link
Contributor Author

Hi,
I fixed those linting changes

@codecov-io
Copy link

codecov-io commented Dec 21, 2018

Codecov Report

Merging #42 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted Files Coverage Δ
src/api/Page.ts 100% <100%> (ø) ⬆️

@deepsweet deepsweet merged commit 0a7cd45 into deepsweet:master Dec 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants