From 28b1367d70342534ff1bcd2ecedcc27b0da2f6d5 Mon Sep 17 00:00:00 2001 From: Resi Respati Date: Sat, 12 May 2018 11:51:42 +0700 Subject: [PATCH] [next] fix tests (getInitialProps should be static) --- types/next/test/next-component-tests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/next/test/next-component-tests.tsx b/types/next/test/next-component-tests.tsx index a6e870f8e2..fefde092ea 100644 --- a/types/next/test/next-component-tests.tsx +++ b/types/next/test/next-component-tests.tsx @@ -6,7 +6,7 @@ interface NextComponentProps { } class ClassNext extends React.Component { - async getInitialProps() { + static async getInitialProps() { return { example: 'example' }; }