mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
18 lines
495 B
JavaScript
18 lines
495 B
JavaScript
'use strict';
|
|
|
|
if (jasmine.jsParser !== 'rhino') {
|
|
describe('JSX support', function() {
|
|
it('should parse JSX files without errors', function() {
|
|
var logger = require('jsdoc/util/logger');
|
|
|
|
function parseJsx() {
|
|
return jasmine.getDocSetFromFile('test/fixtures/jsx.js');
|
|
}
|
|
|
|
spyOn(logger, 'error');
|
|
expect(parseJsx).not.toThrow();
|
|
expect(logger.error).not.toHaveBeenCalled();
|
|
});
|
|
});
|
|
}
|