This file contains 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
$ make tests | |
docker-compose rm -f | |
No stopped containers | |
docker-compose build | |
Building test... | |
Step 0 : FROM centos:7.2.1511 | |
---> 83ee614b834e | |
Step 1 : RUN yum install -y epel-release && yum -y clean all | |
---> Using cache | |
---> e142b8b8c5c2 |
This file contains 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
[fiddleAround e01e4c3] Use file-based input. | |
1 file changed, 6 insertions(+), 11 deletions(-) | |
[sharp-mem-usage]$ make tests | |
docker-compose rm -f | |
No stopped containers | |
docker-compose build | |
Building test... | |
Step 0 : FROM centos:7.2.1511 | |
---> 83ee614b834e | |
Step 1 : RUN yum install -y epel-release && yum -y clean all |
This file contains 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
$ make tests | |
docker-compose rm -f | |
No stopped containers | |
docker-compose build | |
Building test... | |
Step 0 : FROM centos:7.2.1511 | |
---> 83ee614b834e | |
Step 1 : RUN yum install -y epel-release && yum -y clean all | |
---> Using cache | |
---> e142b8b8c5c2 |
This file contains 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
$ make tests | |
docker-compose rm -f | |
No stopped containers | |
docker-compose build | |
Building test... | |
Step 0 : FROM centos:7.2.1511 | |
---> 83ee614b834e | |
Step 1 : RUN yum install -y epel-release && yum -y clean all |
This file contains 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
[unexpected-mitm]$ npm test | |
> [email protected] test /home/andreas/work/unexpected-mitm | |
> mocha --compilers md:unexpected-markdown test/*.js `find documentation -name '*.md'` && npm run lint | |
unexpectedMitm | |
✓ should mock out a simple request | |
✓ should mock out a request with a binary body |
This file contains 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
2) express-processimage when sharp is available should support rotate with a single argument for gm: | |
expected 'GET /bulb.gif?rotate=90' to yield response | |
{ | |
headers: { 'X-Express-Processimage': 'gm' }, | |
body: expect.it('to have metadata satisfying', { format: 'GIF', size: ... }) | |
.and('to resemble', '/home/andreas/work/express-processimage/testdata/rotatedBulb.gif') | |
} | |
GET /bulb.gif?rotate=90 HTTP/1.1 |
This file contains 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
it('should foo', function () { | |
console.log("it foo"); | |
after(function () { | |
console.log("after foo"); | |
}); | |
afterEach(function () { | |
console.log("afterEach foo"); | |
}); | |
}); |
This file contains 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 parseType(str) { | |
return str.split('|').map(function (typeDeclaration) { | |
var varargs = /^\.\.\./.test(typeDeclaration); | |
if (varargs) { | |
return { varargs: typeDeclaration.substr(3) }; | |
} else { | |
return typeDeclaration; | |
} | |
}); | |
} |
This file contains 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
#!/usr/bin/env node | |
/*global JSON*/ | |
var childProcess = require('child_process'); | |
var async = require('async'); | |
var passError = require('passerror'); | |
var commandLineOptions = require('optimist').demand(1).argv; | |
var results = []; | |
var refs = commandLineOptions._; |
This file contains 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 setPrototypeOf(obj, proto) { | |
obj.__proto__ = proto; | |
return obj; | |
} | |
var canSetPrototype = ({ __proto__: [] } instanceof Array); | |
var setPrototypeOfOrExtend = canSetPrototype ? setPrototypeOf : function extend(target, source) { | |
if (source) { | |
for (var prop in source) { |