Skip to content

Commit

Permalink
chore(test): move handling_spec off of the control flow (angular#5010)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrispusDH authored and cnishina committed Mar 23, 2019
1 parent 584e1e5 commit 4f9e54d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 6 additions & 7 deletions spec/basic/handling_spec.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

describe('handling timeout errors', function() {

it('should call error handler on a timeout', function() {
browser.get('http://dummyUrl', 1).then(function() {
describe('handling timeout errors', () => {
it('should call error handler on a timeout', async () => {
try {
await browser.get('http://dummyUrl', 1);
throw 'did not handle error';
}, function(err) {
} catch (err) {
expect(err instanceof Error).toBeTruthy();
});
}
});
});
3 changes: 2 additions & 1 deletion spec/basicConf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ exports.config = {
// Spec patterns are relative to this directory.
specs: [
'basic/elements_spec.js',
'basic/lib_spec.js'
'basic/lib_spec.js',
'basic/handling_spec.js'
],

// Exclude patterns are relative to this directory.
Expand Down
3 changes: 2 additions & 1 deletion spec/ciFullConf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ exports.config = {
// TODO(selenium4): revert back to basic/*_spec.js
specs: [
'basic/elements_spec.js',
'basic/lib_spec.js'
'basic/lib_spec.js',
'basic/handling_spec.js'
],

// Exclude patterns are relative to this directory.
Expand Down

0 comments on commit 4f9e54d

Please sign in to comment.