Skip to content

Commit

Permalink
feat: Skip tests if ASSISTANT_ID is null
Browse files Browse the repository at this point in the history
  • Loading branch information
germanattanasio committed Apr 12, 2019
1 parent c393a8d commit 15db8fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/express.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ const request = require('supertest');
require('dotenv').config({ silent: true });
const app = require('../../index');

describe('express', () => {
const describeOrSkip = process.env.ASSISTANT_ID ? describe : describe.skip;
describeOrSkip('express', () => {
it('should load home page when GET /', (done) => {
request(app).get('/').expect(200, done);
});
Expand Down

0 comments on commit 15db8fe

Please sign in to comment.