21 lines
560 B
JavaScript
21 lines
560 B
JavaScript
const { colors } = require('./index');
|
|
|
|
describe('themer default colors', () => {
|
|
|
|
it('should contain both a light and a dark theme', () => {
|
|
expect(colors.light).toBeDefined();
|
|
expect(colors.dark).toBeDefined();
|
|
});
|
|
|
|
it('should define all 16 required colors for each theme', () => {
|
|
const prefixes = [ 'accent', 'shade' ];
|
|
prefixes.forEach(prefix => {
|
|
for (let i = 0; i <= 7; i++) {
|
|
expect(colors.light[`${prefix}${i}`]).toBeDefined();
|
|
expect(colors.dark[`${prefix}${i}`]).toBeDefined();
|
|
}
|
|
});
|
|
});
|
|
|
|
});
|