Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gund committed Dec 6, 2015
1 parent 91a9a2c commit def5a14
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions test/color-finderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,25 @@ describe('ColorFinder Class', function () {
}).toThrow(Error('ColorFinder: fromImage: Invalid callback'));
});

// TODO This test fails on Travis environment
/*it('should proceed and call function with color', function (done) {
it('should proceed and call function with color', function (done) {
expect(ColorFinder.fromImage(DEMO_IMAGE, function (color) {
expect(color).toEqual([179, 165, 103]);
expect(color instanceof Array).toBeTruthy();

expect(color.length).toBe(3);

// expect(color).toEqual([179, 165, 103]); // TODO This assertion fails on Travis environment
expect(color[0]).toBeGreaterThan(178);
expect(color[0]).toBeLessThan(191);

expect(color[1]).toBeGreaterThan(164);
expect(color[1]).toBeLessThan(177);

expect(color[2]).toBeGreaterThan(102);
expect(color[2]).toBeLessThan(122);

done();
})).toBe(ColorFinder);
});*/
});

});

Expand Down

0 comments on commit def5a14

Please sign in to comment.