phodal/growth

View on GitHub
__tests__/navigation/navigation.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import 'react-native';
import scenes from '../../src/navigation/index';

describe('router test', () => {
  it('test router should currently', () => {
    expect(scenes.comingSoon.component.name).toBe('ComingSoonView');
  });

  it('should return correct tabs key', () => {
    const tabs = scenes.tabs.children;

    expect(tabs[0]).toBe('home');
    expect(tabs[1]).toBe('discover');
    expect(tabs[2]).toBe('community');
    expect(tabs[3]).toBe('practises');
    expect(tabs[4]).toBe('userCenter');
  });
});