react-native-navigation的迁移库

index.test.js 377B

123456789101112131415
  1. describe('index', () => {
  2. let uut;
  3. beforeEach(() => {
  4. uut = require('./index');
  5. });
  6. it('exposes Navigation as default or as Object', () => {
  7. expect(uut.Navigation).toBeDefined();
  8. expect(uut.Navigation).toEqual(uut.default);
  9. expect(uut.Navigation.startApp).toBeInstanceOf(Function);
  10. expect(uut.default.startApp).toBeInstanceOf(Function);
  11. });
  12. });