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

Commit

Permalink
test color
Browse files Browse the repository at this point in the history
  • Loading branch information
James Baxley committed Sep 14, 2016
1 parent e8181a2 commit 8ba8064
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions test/expression-engine/models/content/resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,23 +495,23 @@ test("`ContentData` should return color and primary if color", t => {
);
});

// test("`ContentData` should prioritize fgcolor over bgcolor", t => {
// const { ContentData } = Resolver;
// const mockData = {
// bgcolor: "blue",
// fgcolor: "orange",
// color: null,
// };

// const colors = ContentData.colors(mockData);
// t.deepEqual(
// colors,
// [{
// value: mockData.fgcolor,
// description: "primary",
// }]
// );
// });
test("`ContentData` should prioritize fgcolor over bgcolor", t => {
const { ContentData } = Resolver;
const mockData = {
bgcolor: "blue",
fgcolor: "orange",
color: null,
};

const colors = ContentData.colors(mockData);
t.deepEqual(
colors,
[{
value: mockData.fgcolor,
description: "primary",
}]
);
});

test("`ContentData` should return bgcolor and primary if no color", t => {
const { ContentData } = Resolver;
Expand Down

0 comments on commit 8ba8064

Please sign in to comment.