A simple example to create a websocket server and stream tweets about a pre-defined subject to the page.
$ npm install socket.io, twitter
$ node ./app.js
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| var Aws = require('aws-sdk'); | |
| var sinon = require('sinon'); | |
| // Only works for 'createBucket', 'update' and a few others since most API methods are generated dynamically | |
| // upon instantiation. Very counterintuitive, thanks Amazon! | |
| var createBucket = sinon.stub(Aws.S3.prototype, 'createBucket'); | |
| createBucket.yields(null, 'Me create bucket'); | |
| // For other methods, we can 'assign' the stubs to the proto, already defined function won't be overridden | |
| var listBuckets = Aws.S3.prototype.listBuckets = sinon.stub(); |
| const dateParseHelper = sessions => { | |
| let options = { | |
| day: "numeric", | |
| month: "short", | |
| year: "numeric", | |
| hour: "2-digit", | |
| minute: "2-digit", | |
| hourCycle: "h24" | |
| }; | |
| const convertedSessions = sessions.map(session => { |