From 9267ca83631cb7925d1769f7b75ee70d9b2b9aba Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Mon, 3 Jul 2017 15:39:20 -0700 Subject: [PATCH] remove one last Rhino check --- .../specs/documentation/inlineparamcomment.js | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/test/specs/documentation/inlineparamcomment.js b/test/specs/documentation/inlineparamcomment.js index 37c8c558..d1c79bea 100644 --- a/test/specs/documentation/inlineparamcomment.js +++ b/test/specs/documentation/inlineparamcomment.js @@ -12,20 +12,18 @@ describe('inline comments on function parameters', function() { expect(loadDocSet).not.toThrow(); }); - if (jasmine.jsParser !== 'rhino') { - describe('ES 2015 only', function() { - var docSet2 = jasmine.getDocSetFromFile('test/fixtures/inlineparamcomment2.js'); - var foo = docSet2.getByLongname('ns.foo')[0]; + describe('ES 2015 only', function() { + var docSet2 = jasmine.getDocSetFromFile('test/fixtures/inlineparamcomment2.js'); + var foo = docSet2.getByLongname('ns.foo')[0]; - it('should attach inline comments to default parameters', function() { - expect(foo.params[0].type.names.length).toBe(1); - expect(foo.params[0].type.names[0]).toBe('string'); - }); - - it('should attach inline comments to rest parameters', function() { - expect(foo.params[1].type.names.length).toBe(1); - expect(foo.params[1].type.names[0]).toBe('number'); - }); + it('should attach inline comments to default parameters', function() { + expect(foo.params[0].type.names.length).toBe(1); + expect(foo.params[0].type.names[0]).toBe('string'); }); - } + + it('should attach inline comments to rest parameters', function() { + expect(foo.params[1].type.names.length).toBe(1); + expect(foo.params[1].type.names[0]).toBe('number'); + }); + }); });