Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import setupFlags from '../../core/use-cases/setup-flags';
import { CLIProgram } from '../../core/entities/cli-program';
import ConfigurationRepository from '../../core/repositories/config.repository';
import ServeService from './serve';
const request = require('supertest');
describe('Infrastructure - Serve files', () => {
let server;
before(() => {
const currentProgram: CLIProgram = setupFlags.setup({
version: '0.0.1'
});
ConfigurationRepository.init(currentProgram);
ConfigurationRepository.internalConfiguration.output = 'src';
server = ServeService.serve(ConfigurationRepository.internalConfiguration);
});
after(() => {
server.close();
});
it('should serve with existing folder src/templates', () => {
return request(server)
.get('/templates/')
.expect(200);
});
});
|