add experiment.js to the sdk

pull/85/head
nightwing 2015-04-26 02:03:32 +04:00
rodzic 2947c723b8
commit 1043a72bd5
1 zmienionych plików z 26 dodań i 0 usunięć

Wyświetl plik

@ -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;
}
}
});
}