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
Michaels-MacBook-Air:nextgenjane michaelphillips$ jitsu deploy | |
info: Welcome to Nodejitsu ridhitariyal | |
info: jitsu v0.13.18, node v0.10.15 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node server/app.js | |
info: Creating snapshot 0.1.0-2 | |
info: Uploading: [=============================] 100% | |
error: Error running command deploy | |
error: Error building snapshot |
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
{ | |
"name": "nextgenjane", | |
"version": "0.1.0", | |
"private": true, | |
"scripts": { | |
"start": "node server/app.js" | |
}, | |
"engines": { | |
"node": "0.10.15" | |
}, |
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
Michaels-MacBook-Air:nextgenjane michaelphillips$ jitsu deploy | |
info: Welcome to Nodejitsu ridhitariyal | |
info: jitsu v0.13.18, node v0.10.9 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node server/app.js | |
info: Checking app availability nextgenjane | |
info: Creating app nextgenjane | |
info: Creating snapshot 0.1.0-1 | |
info: Uploading: [=============================] 100% |
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
Michaels-MacBook-Air:nextgenjane michaelphillips$ node -v | |
v0.10.15 | |
Michaels-MacBook-Air:nextgenjane michaelphillips$ npm -v | |
1.4.6 | |
Michaels-MacBook-Air:nextgenjane michaelphillips$ jitsu deploy | |
info: Welcome to Nodejitsu createbang | |
info: jitsu v0.13.18, node v0.10.15 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node server/boot.js |
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 promisify( fnName, context, options ) { | |
/*jshint validthis:true */ | |
var originalFn = context[ fnName ], | |
originalArity = originalFn.length; | |
if(arguments.length >= 2) // function( res, resolve[, reject]); | |
return originalFn; | |
return function() { | |
var deferred = Q.defer; |
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
{ | |
"priorities": { | |
"now": [ | |
{ | |
"name": "one", | |
"importance": 0.7 | |
} | |
], | |
"later": [ | |
{ |
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
{ | |
"diagnostics": [ | |
{ | |
"id": "1234" | |
}, | |
{ | |
"id": "1235" | |
} | |
], | |
"tools": { |
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
new EmailReportCardToParent(new PrintReportCard(new GenerateReportCard(student))).run() |
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 chai = require('chai') | |
var expect = chai.expect | |
var sinon = require('sinon') | |
chai.use(require('sinon-chai')) | |
describe('EmailReportCardToParent', function(){ | |
var generateReportCard | |
var decorated | |
before(function(){ |
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 generateReportCardService = new GenerateReportCard() | |
var decoratedService = new EmailReportCardToParent(generateReportCardService) | |
// returned object is exact same object | |
decoratedService === generateReportCardService // true |