These rules are adopted from the AngularJS commit conventions.
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
| jest.dontMock('../getStuff'); | |
| describe('getStuff', () => { | |
| let getStuff; | |
| let request; | |
| let stuffStore; | |
| it('loads the data', () => { | |
| const id = 1; | |
| const data = {a: 1}; |
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
| const I = x => x; | |
| const K = x => _ => x; | |
| const A = f => x => f(x); | |
| const T = x => f => f(x); | |
| const W = f => x => f(x)(x); | |
| const C = f => y => x => f(x)(y); | |
| const B = f => g => x => f(g(x)); | |
| const S = f => g => x => f(x)(g(x)); | |
| const P = f => g => x => y => f(g(x))(g(y)); | |
| const Y = f => (g => g(g))(g => f(x => g(g)(x))); |
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
| // Required Modules | |
| var webdriver = require('wd') | |
| , assert = require('assert') | |
| , fs = require('fs') | |
| , mkdirp = require('mkdirp'); | |
| // Define the strings for landscape & portrait | |
| var PORTRAIT = "PORTRAIT"; | |
| var LANDSCAPE = "LANDSCAPE"; | |
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 portrange = 45032 | |
| function getPort (cb) { | |
| var port = portrange | |
| portrange += 1 | |
| var server = net.createServer() | |
| server.listen(port, function (err) { | |
| server.once('close', function () { | |
| cb(port) |