Skip to content

Commit

Permalink
🐛 Fix orange not exported
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Aug 28, 2019
1 parent e912933 commit e03ddcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/index.ts
Expand Up @@ -32,6 +32,7 @@ Object.keys(presetPrimaryColors).forEach((key): void => {
const red = presetPalettes.red;
const volcano = presetPalettes.volcano;
const gold = presetPalettes.gold;
const orange = presetPalettes.orange;
const yellow = presetPalettes.yellow;
const lime = presetPalettes.lime;
const green = presetPalettes.green;
Expand All @@ -48,6 +49,7 @@ export {
presetPrimaryColors,
red,
volcano,
orange,
gold,
yellow,
lime,
Expand Down
3 changes: 2 additions & 1 deletion tests/export.test.ts
@@ -1,4 +1,4 @@
import { red, volcano, gold, yellow, lime, green, cyan, blue, geekblue, purple, magenta, grey } from '../src';
import { red, volcano, orange, gold, yellow, lime, green, cyan, blue, geekblue, purple, magenta, grey } from '../src';
import { blueColors } from './index.test';

test(`import { blue } from '@ant-design/colors'`, () => {
Expand All @@ -9,6 +9,7 @@ test(`import { blue } from '@ant-design/colors'`, () => {
test(`other colors'`, () => {
expect(red.length).toEqual(10);
expect(volcano.length).toEqual(10);
expect(orange.length).toEqual(10);
expect(gold.length).toEqual(10);
expect(yellow.length).toEqual(10);
expect(lime.length).toEqual(10);
Expand Down

0 comments on commit e03ddcf

Please sign in to comment.