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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
var constructor = function(params) { | |
RenderModule.call(this, constructor, params); | |
}; | |
constructor.FX2RenderModuleName = 'Dummy'; | |
constructor.init = function() { | |
return RenderModule.init(Utils.resolveUrl('./render.js'), constructor); | |
}; |
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
import test from 'tape'; | |
// For each unit test you write, | |
// answer these questions: | |
test('What component aspect are you testing?', assert => { | |
const actual = 'What is the actual output?'; | |
const expected = 'What is the expected output?'; | |
assert.equal(actual, expected, | |
'What should the feature do?'); |
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
"scripts": { | |
"lint": "eslint source", | |
"clean": "rm -rf build/* && mkdir build/public && mkdir build/server && mkdir build/client", | |
"build-server": "babel -d build/server source/server -s", | |
"build-client": "browserify source/client/index.js -t babelify --outfile build/client/bundle.js", | |
"build": "npm run clean && npm run build-server && npm build-client" | |
} |
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
var SpeedTest = function(testImplement,testParams,repetitions){ | |
this.testImplement = testImplement; | |
this.testParams = testParams; | |
this.repetitions = repetitions || 10000; | |
this.average = 0; | |
}; | |
SpeedTest.prototype = { | |
startTest: function(){ | |
if( this.testImplement( this.testParams ) === false ){ |