瀏覽代碼

small test fix

Daniel Zlotin 7 年之前
父節點
當前提交
6dac4e8b95
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      integration/remx/remx.test.js

+ 1
- 1
integration/remx/remx.test.js 查看文件

48
   it('support for static members in connected components', () => {
48
   it('support for static members in connected components', () => {
49
     expect(MyConnectedComponent.options).toEqual({ title: 'MyComponent' });
49
     expect(MyConnectedComponent.options).toEqual({ title: 'MyComponent' });
50
 
50
 
51
-    const registeredComponentClass = Navigation.componentRegistry.registerComponent('MyComponentName', () => MyConnectedComponent);
51
+    const registeredComponentClass = Navigation.registerComponent('MyComponentName', () => MyConnectedComponent);
52
     expect(registeredComponentClass.options).toEqual({ title: 'MyComponent' });
52
     expect(registeredComponentClass.options).toEqual({ title: 'MyComponent' });
53
   });
53
   });
54
 });
54
 });