react-native-navigation的迁移库

ContainerStore.test.js 395B

1234567891011121314151617181920
  1. describe('ContainerStore', () => {
  2. let uut;
  3. beforeEach(() => {
  4. uut = require('./ContainerStore');
  5. });
  6. class Component {
  7. //
  8. }
  9. class MyComponent extends Component {
  10. //
  11. }
  12. it('holds containers classes by containerKey', () => {
  13. uut.saveContainerClass('example.mykey', MyComponent);
  14. expect(uut.getContainerClass('example.mykey')).toEqual(MyComponent);
  15. });
  16. });