theming: add test that would fail at runtime

This commit is contained in:
Sebastian Silbermann
2018-08-23 10:11:40 +02:00
parent d6bf96be4f
commit aeb8aa0e72

View File

@@ -2,11 +2,16 @@ import * as React from "react";
import {
channel,
ContextWithTheme,
Theme,
themeListener,
ThemeProvider,
withTheme
} from "theming";
// Typings currently accept non-plain-objects while they get rejected at runtime.
// There exists currently no typing for plain objects.
const runtimeErrorTheme: Theme = [];
const customTheme = {
color: {
primary: "red",