kopia lustrzana https://github.com/c9/core
add experiment.js to the sdk
rodzic
2947c723b8
commit
1043a72bd5
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
Ładowanie…
Reference in New Issue