not-found.js 320 Bytes
describe( '404 Error', function() {
  it( 'should render a 404 for a non-existent route', function() {
    browser.url( 'http://localhost:3000/dididothat' )
           .waitForExist( '.alert-danger' );

    expect( browser.getText( '.alert-danger p' ) ).to.equal( 'Error [404]: /dididothat does not exist.' );
  });
});