'use strict';

var should = require('should');
var react-gandalf = require('../');

describe('FUNCTIONNAME()', function() {
  it('should TASKNAME', function(done) {
    should.exist(react-gandalf);
    done();
  });
});

@@ -16,187 +16,2321 @@
 var 
-should = require('should');%0Avar react-gandalf = require('../');%0A%0Adescribe('FUNCTIONNAME()', function() %7B%0A  it('should TASKNAME', function(done) %7B%0A    should.exist(react-gandalf
+React = require('react');%0Avar ReactAddons = require('react/addons');%0Avar TestUtils = React.addons.TestUtils;%0A%0Avar should = require('should');%0Avar Gandalf = React.createFactory(require('../'));%0A%0Avar Dummy = function(num)%7B%0A  return React.createFactory(React.createClass(%7B%0A    render: function()%7B%0A      return React.DOM.div(null, 'Dummy ' + num);%0A    %7D%0A  %7D));%0A%7D%0A%0Adescribe('react-gandalf', function() %7B%0A  it('should export a react component', function(done) %7B%0A    should.exist(Gandalf);%0A    (typeof Gandalf).should.equal('function');%0A    done();%0A  %7D);%0A%7D);%0A%0Adescribe('Gandalf()', function() %7B%0A  it('should be able to skip steps', function(done) %7B%0A    var Step1 = %7B%0A      name: 'TestStep1',%0A      component: Dummy(1),%0A      skippable: true%0A    %7D;%0A    var Step2 = %7B%0A      name: 'TestStep2',%0A      component: Dummy(2),%0A      skippable: true%0A    %7D;%0A    var inst = Gandalf(%7B%0A      steps: %5BStep1, Step2%5D%0A    %7D);%0A%0A    var cmp = TestUtils.renderIntoDocument(inst);%0A    var el = cmp.getDOMNode();%0A%0A    should.exist(el);%0A    should.exist(el.children);%0A    el.textContent.indexOf('Dummy 1').should.not.equal(-1);%0A%0A    cmp.nextStep();%0A    el.textContent.indexOf('Dummy 2').should.not.equal(-1);%0A%0A    done();%0A  %7D);%0A%7D);%0A%0Adescribe('Gandalf()', function() %7B%0A  it('should be possible to call previousStep from Step1', function(done) %7B%0A    var Step1 = %7B%0A      name: 'TestStep1',%0A      component: Dummy(1),%0A      skippable: true%0A    %7D;%0A    var inst = Gandalf(%7B%0A      steps: %5BStep1%5D%0A    %7D);%0A%0A    var cmp = TestUtils.renderIntoDocument(inst);%0A    var el = cmp.getDOMNode();%0A%0A    should.exist(el);%0A    should.exist(el.children);%0A    el.textContent.indexOf('Dummy 1').should.not.equal(-1);%0A%0A    cmp.previousStep();%0A    el.textContent.indexOf('Dummy 1').should.not.equal(-1);%0A%0A    done();%0A  %7D);%0A%7D);%0A%0Adescribe('Gandalf()', function() %7B%0A  it('should be possible to call nextStep from last step', function(done) %7B%0A    var Step1 = %7B%0A      name: 'TestStep1',%0A      component: Dummy(1),%0A      skippable: true%0A    %7D;%0A    var inst = Gandalf(%7B%0A      steps: %5BStep1%5D%0A    %7D);%0A%0A    var cmp = TestUtils.renderIntoDocument(inst);%0A    var el = cmp.getDOMNode();%0A%0A    should.exist(el);%0A    should.exist(el.children);%0A    el.textContent.indexOf('Dummy 1').should.not.equal(-1);%0A%0A    cmp.nextStep();%0A    el.textContent.indexOf('Dummy 1').should.not.equal(-1
 );%0A
+%0A
     
@@ -2326,29 +2326,28 @@
 (-1);%0A%0A    done();%0A  %7D);%0A%7D);
-%0A

add tests