From 1043a72bd5566e9f7222ff331a57cc334a95bb08 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 26 Apr 2015 02:03:32 +0400 Subject: [PATCH] add experiment.js to the sdk --- plugins/c9.ide.experiment/mock_experiment.js | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 plugins/c9.ide.experiment/mock_experiment.js diff --git a/plugins/c9.ide.experiment/mock_experiment.js b/plugins/c9.ide.experiment/mock_experiment.js new file mode 100644 index 00000000..bebfb134 --- /dev/null +++ b/plugins/c9.ide.experiment/mock_experiment.js @@ -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; + } + } + }); +} \ No newline at end of file