From c3fe27a5fe50dc585fb0c79b434d0cb9201cfdd9 Mon Sep 17 00:00:00 2001 From: Supasate Choochaisri Date: Fri, 6 May 2016 21:46:02 +0700 Subject: [PATCH] Ignore copyright in dummy swagger-ui test Signed-off-by: Supasate Choochaisri --- test/explorer.test.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/explorer.test.js b/test/explorer.test.js index 1efa8a0..3527457 100644 --- a/test/explorer.test.js +++ b/test/explorer.test.js @@ -128,9 +128,14 @@ describe('explorer', function() { it('overrides swagger-ui files', function(done) { request(app).get('/explorer/swagger-ui.js') .expect(200) - // expect the content of `dummy-swagger-ui/swagger-ui.js` - .expect('/* custom swagger-ui file */' + os.EOL) - .end(done); + .end(function(err, res) { + if (err) return done(err); + + // expect the content of `dummy-swagger-ui/swagger-ui.js` + expect(res.text).to.contain('/* custom swagger-ui file */' + os.EOL); + + done(); + }); }); it('overrides strongloop overrides', function(done) {