restructure the project
This commit is contained in:
Родитель
7c41e714d1
Коммит
72005f82fb
|
@ -6,7 +6,7 @@ COPY package*.json ./
|
|||
|
||||
RUN npm install --production
|
||||
|
||||
COPY *.js ./
|
||||
COPY src/*.js ./
|
||||
|
||||
USER node
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-env mocha */
|
||||
|
||||
process.env.NODE_ENV = 'test';
|
||||
const utilityModule = require('../utilityModule');
|
||||
const utilityModule = require('../src/utilityModule');
|
||||
|
||||
const chai = require('chai');
|
||||
const chaiHttp = require('chai-http');
|
||||
|
@ -15,7 +15,7 @@ chai.use(chaiHttp);
|
|||
describe('server', () => {
|
||||
sinon.stub(utilityModule, 'initModule').callsFake(() => {});
|
||||
|
||||
const server = require('../server');
|
||||
const server = require('../src/server');
|
||||
|
||||
describe('/POST message', () => {
|
||||
it('it should invoke the sendOutputEvent', (done) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче