Sha256: 7d70105e96bf8aaf0cec7b7e12004a5c0fed81a0f89f64c9c99fe15fa5c2d1a3

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 Bytes

Contents

import PageTypeResolver from 'resolvers/page_type_resolver';

describe('PageTypeResolver', () => {
  it('uses page type seed data', () => {
    var seed = {page_types: {
      audio_page: {some: 'data'}
    }};
    var pageTypeResolver = new PageTypeResolver();

    var result = pageTypeResolver.get({type: 'audio_page'}, seed);

    expect(result.some).to.eq('data');
  });

  it('sets name property to page type name', () => {
    var seed = {page_types: {}};
    var pageTypeResolver = new PageTypeResolver();

    var result = pageTypeResolver.get({type: 'audio_page'}, seed);

    expect(result.name).to.eq('audio_page');
  });
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-react-0.1.1 js/spec/resolvers/page_type_resolver_spec.js
pageflow-react-0.1.0 js/spec/resolvers/page_type_resolver_spec.js