From 8fcfc1152bd2f16fd027df2a05fae1ad01bd2e51 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 2 Mar 2016 19:12:04 -0800 Subject: [PATCH] Remove mapboxism --- test/content.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/test/content.js b/test/content.js index 1a0efb9..60c1b94 100644 --- a/test/content.js +++ b/test/content.js @@ -103,17 +103,15 @@ describe('content', () => { expect(endpoint.length).toBeGreaterThan(0); expect(endpoint[0].value.toString()).toMatch(/^(PUT|POST|GET|DELETE|PATCH)/); }); - if (!file.match(/(style|static_gl|maps|static_classic|uploads)/)) { - it('has python example', () => { - expect(select(chunk, 'code[lang=python]').length).toBeGreaterThan(0); - }); - it('has js example', () => { - expect(select(chunk, 'code[lang=javascript]').length).toBeGreaterThan(0); - }); - it('has curl example', () => { - expect(select(chunk, 'code[lang=curl]').length).toBeGreaterThan(0); - }); - } + it('has python example', () => { + expect(select(chunk, 'code[lang=python]').length).toBeGreaterThan(0); + }); + it('has js example', () => { + expect(select(chunk, 'code[lang=javascript]').length).toBeGreaterThan(0); + }); + it('has curl example', () => { + expect(select(chunk, 'code[lang=curl]').length).toBeGreaterThan(0); + }); }); }); });