mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
fix build breakage on Rhino parser
This commit is contained in:
parent
058cf91392
commit
1c754e98f2
@ -1,21 +1,24 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe('rest parameters', function() {
|
// Rhino can't handle rest parameters
|
||||||
var docSet = jasmine.getDocSetFromFile('test/fixtures/restparams.js');
|
if (jasmine.jsParser !== 'rhino') {
|
||||||
var setAdmins = docSet.getByLongname('setAdmins')[0];
|
describe('rest parameters', function() {
|
||||||
var setWidgetAccess = docSet.getByLongname('setWidgetAccess')[0];
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/restparams.js');
|
||||||
|
var setAdmins = docSet.getByLongname('setAdmins')[0];
|
||||||
|
var setWidgetAccess = docSet.getByLongname('setWidgetAccess')[0];
|
||||||
|
|
||||||
it('should automatically mark standalone rest parameters as repeatable', function() {
|
it('should automatically mark standalone rest parameters as repeatable', function() {
|
||||||
var restParam = setAdmins.params[0];
|
var restParam = setAdmins.params[0];
|
||||||
|
|
||||||
expect(restParam.name).toBe('users');
|
expect(restParam.name).toBe('users');
|
||||||
expect(restParam.variable).toBe(true);
|
expect(restParam.variable).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should automatically mark rest parameters as repeatable when they are mixed with other params', function() {
|
||||||
|
var restParam = setWidgetAccess.params[1];
|
||||||
|
|
||||||
|
expect(restParam.name).toBe('users');
|
||||||
|
expect(restParam.variable).toBe(true);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
it('should automatically mark rest parameters as repeatable when they are mixed with other params', function() {
|
|
||||||
var restParam = setWidgetAccess.params[1];
|
|
||||||
|
|
||||||
expect(restParam.name).toBe('users');
|
|
||||||
expect(restParam.variable).toBe(true);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user