import "babel-polyfill";

import chai from "chai";

import {Result} from "../src/index";


var should = chai.should();

describe("Result:", () => {
    let result;

    beforeEach(() => {
        result = new Result(null);
    });

    describe("#ctor", () => {

        it("should create instance.", ()=> {
            (!!result).should.be.equal(true);
        });

        it("should create observations as empty array.", ()=> {
            result.observations.length.should.be.equal(0);
        });

        it("should create experimentIn as null", ()=> {
            (result.experimentIn === null).should.be.equal(true);
        });
    });

    describe("#observations", () => {

        it("should set observations", ()=> {
            var expected = [{}];
            result.observations = expected;
            result.observations.length.should.be.equal(expected.length);
        });
    });
});
@@ -621,32 +621,341 @@
 ue);%0A        %7D);
+%0A%0A        it(%22should set experimentIn externally.%22, ()=%3E%7B%0A            let mockExperimentIn = 'mockExperimentIn';%0A%0A            (result.experimentIn === null).should.be.equal(true);%0A            result.experimentIn = mockExperimentIn;%0A            result.experimentIn.should.be.equal(mockExperimentIn);%0A        %7D)
 %0A    %7D);%0A%0A    de

Add tests to result.