Skip to content

Commit

Permalink
Import directly from index file in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
horstenwillem committed Mar 17, 2018
1 parent 0fd21e4 commit e1a1834
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/express.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as request from 'supertest-as-promised';
import * as express from 'express';
const redisMock = require('redis-mock');
import { setLocalHeaders, setBasicSecurity, setBodyParser, setRateLimiter } from '../src/lib/express';
import { setLocalHeaders, setBasicSecurity, setBodyParser, setRateLimiter } from '../src';

describe('Express', () => {
describe('#setLocalHeaders', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/responder.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as request from 'supertest-as-promised';
import * as express from 'express';
import * as responder from './../src/lib/responder';
import * as responder from './../src';
const app = express();

describe('Responder', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/server.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from 'express';
import * as request from 'supertest-as-promised';
import { startServer } from '../src/lib/server';
import { startServer } from '../src';

// CONSTANTS
const CONFIGURATION = {
Expand Down
2 changes: 1 addition & 1 deletion tests/swagger.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as request from 'supertest-as-promised';
import * as express from 'express';
import { setSwagger } from './../src/lib/swagger';
import { setSwagger } from './../src';
const app = express();

describe('Swagger', () => {
Expand Down

0 comments on commit e1a1834

Please sign in to comment.