Skip to content

Commit

Permalink
tests(AppVersionComponent): Fixing the tests to adapt to new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
wavesoft committed May 9, 2017
1 parent bf905ff commit 3971436
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/test/units/AppVersionComponent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,37 +138,37 @@ describe("AppVersionComponent", function () {
});

it("has correct backoff factor", function () {
var children = this.rows.at(33).props().children;
var children = this.rows.at(35).props().children;
expect(children[0]).to.equal(1.15);
});

it("has correct backoff", function () {
var children = this.rows.at(35).props().children;
var children = this.rows.at(37).props().children;
expect(children[0]).to.equal(1);
expect(children[2]).to.equal("seconds");
});

it("has correct max launch delay", function () {
var children = this.rows.at(37).props().children;
var children = this.rows.at(39).props().children;
expect(children[0]).to.equal(3600);
expect(children[2]).to.equal("seconds");
});

it("has correct URIs", function () {
expect(this.rows.at(39).text().trim()).to.equal("Unspecified");
expect(this.rows.at(41).text().trim()).to.equal("Unspecified");
});

it("has correct User", function () {
expect(this.rows.at(41).props().children[0]).to.equal("testuser");
expect(this.rows.at(43).props().children[0]).to.equal("testuser");
});

it("has correct args", function () {
expect(this.rows.at(43).text()).to.equal("arg1");
expect(this.rows.at(44).text()).to.equal("arg2");
expect(this.rows.at(45).text()).to.equal("arg1");
expect(this.rows.at(46).text()).to.equal("arg2");
});

it("has correct version", function () {
expect(this.rows.at(46).props().children[0])
expect(this.rows.at(48).props().children[0])
.to.equal("2015-06-29T12:57:02.269Z");
});

Expand Down

0 comments on commit 3971436

Please sign in to comment.