This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Promise.prototype.then = function (good, bad) { | |
| this.chain_ = this.chain_ || []; | |
| this.chain_.push({resolve: good, reject: bad}); | |
| return this; | |
| } | |
| Promise.prototype.resolveNext_ = function () { | |
| if (!this.chain_) return; | |
| var next = this.chain_.shift(), nextVal; | |
| if (!next) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var orderOfExecution = []; | |
| function mockResolve_ (promise, resolvedVal, rejectedVal) { | |
| promise.resolvedVal = resolvedVal; | |
| promise.rejectedVal = rejectedVal; | |
| } | |
| function flush (promise) { | |
| promise.resolveNext_.call(promise); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function resolve(val) { | |
| alert('Counted to ' + val); | |
| return val; | |
| } | |
| function reject(reason) { | |
| alert('Could not count'); | |
| return reason; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ./node_modules/.bin/webdriver-manager update | |
| ./node_modules/.bin/webdriver-manager start | |
| # ^ need to wait 5s and continue with running other scripts, | |
| # then kill the process | |
| ./node_modules/.bin/protractor protractorConf.js | |
| code1=$? | |
| echo "code1" | |
| echo $code1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| info: Creating snapshot 0.0.0-4 | |
| info Uploading: [=============================] 99% | |
| info: Updating app nko3-deployd | |
| info: Activating snapshot 0.0.0-4 for nko3-deployd | |
| info: Starting app nko3-deployd | |
| error: Error running command deploy | |
| error: Nodejitsu Error (500): Internal Server Error | |
| error: There was an error while attempting to deploy the app | |
| error: | |
| error: Rackspace Error (404): Item not found |
NewerOlder