mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
32 lines
667 B
JavaScript
32 lines
667 B
JavaScript
const util = require('../../index');
|
|
|
|
describe('@jsdoc/util', () => {
|
|
it('is an object', () => {
|
|
expect(util).toBeObject();
|
|
});
|
|
|
|
it('has a cast method', () => {
|
|
expect(util.cast).toBeFunction();
|
|
});
|
|
|
|
it('has an fs object', () => {
|
|
expect(util.fs).toBeObject();
|
|
});
|
|
|
|
describe('cast', () => {
|
|
it('is ./lib/cast', () => {
|
|
const cast = require('../../lib/cast');
|
|
|
|
expect(util.cast).toBe(cast);
|
|
});
|
|
});
|
|
|
|
describe('fs', () => {
|
|
it('is ./lib/fs', () => {
|
|
const fs = require('../../lib/fs');
|
|
|
|
expect(util.fs).toBe(fs);
|
|
});
|
|
});
|
|
});
|