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

Commit

Permalink
chore(spec): cast away typescript error message (#4044)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjelin authored Jan 31, 2017
1 parent ba57db2 commit c021595
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/ts/noCFPluginConf.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as q from 'q';
import {Config, protractor} from '../..';
import {promise as wdpromise} from 'selenium-webdriver';
const env = require('../environment.js');

export let config: Config = {
Expand All @@ -18,7 +19,8 @@ export let config: Config = {
plugins: [{
inline: {
onPageLoad: function() {
return q.delay(100).then(function() {
//TODO: remove cast when @types/selenium-webdriver understands disabling the control flow
return (q.delay(100) as any as wdpromise.Promise<void>).then(function() {
(protractor as any).ON_PAGE_LOAD = true;
});
}
Expand Down

0 comments on commit c021595

Please sign in to comment.