浏览代码

fix: fixed tslint validation error

Torkel Ödegaard 8 年之前
父节点
当前提交
34edea4ac7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/core/specs/ColorPalette.jest.tsx

+ 1 - 1
public/app/core/specs/ColorPalette.jest.tsx

@@ -4,7 +4,7 @@ import { ColorPalette } from '../components/colorpicker/ColorPalette';
 
 describe('CollorPalette', () => {
   it('renders correctly', () => {
-    const tree = renderer.create(<ColorPalette color="#EAB839" />).toJSON();
+    const tree = renderer.create(<ColorPalette color="#EAB839" onColorSelect={jest.fn()} />).toJSON();
     expect(tree).toMatchSnapshot();
   });
 });