mercredi 27 juillet 2016

Aurelia. Testing. TypeError: config.addPipelineStep is not a function

I use default Aurelia's sceleton-esnext updated to last version . I added this line to App ( Example from doc. Customizing the Navigation Pipeline)

config.addPipelineStep('authorize', AuthorizeStep);

After this I catch error running 'gulp test'

Chrome 52.0.2743 (Linux 0.0.0) the App module contains a router property FAILED
TypeError: config.addPipelineStep is not a function

Test

  it('contains a router property', () => {
    expect(sut.router).toBeDefined();
  });

Test is going well without line.

Aucun commentaire:

Enregistrer un commentaire