Blame view

tests/not-found.js 389 Bytes
f0c912bf1   tmcdeveloper   add method tests ...
1
2
  /* eslint-env mocha */
  /* eslint-disable func-names, prefer-arrow-callback */
c23f29749   tmcdeveloper   add not found rou...
3

f0c912bf1   tmcdeveloper   add method tests ...
4
5
6
7
8
9
  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.');
c23f29749   tmcdeveloper   add not found rou...
10
11
    });
  });