Skip to content

Commit

Permalink
fix(shape): Fix issue with True Color support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Updated kittik-cursor leads to less colors you can use
  • Loading branch information
ghaiklor committed May 12, 2016
1 parent f9e6eaa commit 4f29ec4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit/Rectangle.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('Shape::Rectangle', () => {
const rectangle = new Rectangle(cursor);
const mock = sinon.mock(cursor);

mock.expects('background').once().withExactArgs(false).returns(cursor);
mock.expects('foreground').once().withExactArgs(false).returns(cursor);
mock.expects('background').once().withExactArgs('none').returns(cursor);
mock.expects('foreground').once().withExactArgs('none').returns(cursor);
mock.expects('moveTo').exactly(8).returns(cursor);
mock.expects('write').exactly(7).returns(cursor);

Expand Down Expand Up @@ -56,8 +56,8 @@ describe('Shape::Rectangle', () => {
height: 5,
x: 10,
y: 10,
background: false,
foreground: false
background: 'none',
foreground: 'none'
}
});
});
Expand All @@ -82,7 +82,7 @@ describe('Shape::Rectangle', () => {
assert.equal(rectangle.getHeight(), 50);
assert.equal(rectangle.getX(), 1);
assert.equal(rectangle.getY(), 1);
assert.notOk(rectangle.getBackground());
assert.notOk(rectangle.getForeground());
assert.equal(rectangle.getBackground(), 'none');
assert.equal(rectangle.getForeground(), 'none');
});
});

0 comments on commit 4f29ec4

Please sign in to comment.