Make tests happy

This commit is contained in:
Fredrik Nicol
2018-03-19 09:15:13 +01:00
parent 5e51c5df48
commit 8ae1dd4c85
2 changed files with 8 additions and 4 deletions
+3 -3
View File
@@ -105,11 +105,11 @@ export interface RuleOptions {
}
export declare class SheetsRegistry {
constructor();
registry: ReadonlyArray<StyleSheet<any>>;
registry: ReadonlyArray<StyleSheet>;
readonly index: number;
add(sheet: StyleSheet<any>): void;
add(sheet: StyleSheet): void;
reset(): void;
remove(sheet: StyleSheet<any>): void;
remove(sheet: StyleSheet): void;
toString(options?: ToCssOptions): string;
}
declare class JSS {
+5 -1
View File
@@ -92,7 +92,11 @@ sheetsRegistry.add(styleSheet);
const secondStyleSheet = jss.createStyleSheet(
{
ruleWithMockObservable: {
subscribe() {}
subscribe() {
return {
unsubscribe() {}
};
}
},
container2: {
display: 'flex',