Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 17178a8

Browse files
Throw error in catch block
1 parent e7cc98e commit 17178a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ describe('Google Translate', function () {
1010
await driver.wait(until.titleIs('Google Translate'), 2000);
1111

1212
await driver.findElement(By.id('source')).sendKeys('varsågod', Key.RETURN);
13-
let prom = await driver.wait(until.elementLocated(By.css('.translation span')), 2000).getText()
13+
let prom = await driver.wait(until.elementLocated(By.css('.translation span')), 2000).getText();
1414

1515
expect(prom)
1616
.to.be.a('string')
17-
.and.equal('You are welcome')
17+
.and.equal('You are welcome');
1818
} catch (error) {
19-
expect.fail(`Error while executing test: ${error}`);
19+
throw(error);
2020
} finally {
2121
await driver.quit();
2222
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /