fix flow check

This commit is contained in:
Sebastian Sdorra
2018-08-30 11:40:53 +02:00
parent 55cb86084a
commit ec158e3d4d
12 changed files with 20 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ import { withContextPath } from "../urls";
type Props = {
src: string,
alt: string,
className: any
className?: any
};
class Image extends React.Component<Props> {

View File

@@ -13,7 +13,7 @@ type State = {
};
type Plugin = {
id: string,
name: string,
bundles: string[]
};

View File

@@ -206,6 +206,7 @@ describe("config reducer", () => {
});
it("should return empty arrays for null values", () => {
// $FlowFixMe
const config = reducer({}, fetchConfigSuccess(configWithNullValues))
.entries;
expect(config.adminUsers).toEqual([]);