From 15db8fedf39ed0270e19dcd71bc1ac7963588c17 Mon Sep 17 00:00:00 2001 From: German Attanasio Date: Fri, 12 Apr 2019 18:33:08 -0400 Subject: [PATCH] feat: Skip tests if ASSISTANT_ID is null --- test/unit/express.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/express.test.js b/test/unit/express.test.js index 4d36686..a318626 100644 --- a/test/unit/express.test.js +++ b/test/unit/express.test.js @@ -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); });