1234567891011121314151617181920212223 |
- /**
- * React Static Boilerplate
- * https://github.com/koistya/react-static-boilerplate
- * Copyright (c) Konstantin Tarkus (@koistya) | MIT license
- */
- import { describe, it } from 'mocha';
- import { expect } from 'chai';
- describe('routes-loader', () => {
- it('Should load a list of routes', done => {
- this.cacheable = () => {};
- this.async = () => (err, result) => {
- expect(err).to.be.null;
- expect(result).to.not.to.be.empty.and.have.all.keys('/', '/404', '/500');
- done();
- };
- require('../tools/lib/routes-loader').call(this);
- });
- });
|