add experiment.js to the sdk

This commit is contained in:
nightwing 2015-04-26 02:03:32 +04:00
parent 2947c723b8
commit 1043a72bd5

View File

@ -0,0 +1,26 @@
/**
* Dummy implementation of experiments.
*/
"use strict";
plugin.consumes = [];
plugin.provides = ["experiment"];
module.exports = plugin;
function plugin(options, imports, register) {
register(null, {
"experiment": {
configureExperiment: function() {},
onStart: function() {
var chain = {
variation: function() {
return chain;
}
}
return chain;
}
}
});
}