Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Nov 1, 2024
1 parent 1e547e5 commit 2ff8703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 89 deletions.
3 changes: 2 additions & 1 deletion test/caching.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ only.set('.explain({ files, cache: true })', async function () {
const cachedFiles = readdirSync(jsdoc.cache.dir).map(file => path.resolve(jsdoc.cache.dir, file))
a.equal(cachedFiles.length, 1)
a.deepEqual(output, f.getExpectedOutput(output))
const cachedData = JSON.parse(readFileSync(cachedFiles[0], 'utf8'))
let cachedData = JSON.parse(readFileSync(cachedFiles[0], 'utf8'))
cachedData = Fixture.normaliseNewLines(cachedData)
Fixture.removeFileSpecificData(cachedData)
a.deepEqual(
cachedData,
Expand Down
88 changes: 0 additions & 88 deletions test/lib/fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,96 +52,8 @@ class Fixture {
/* Additional check for naked \r characters created by jsdoc */
/* See: https://github.com/jsdoc2md/dmd/issues/102 */
result = result.replace(/\\r(?!\\n)/g, '\\n')
console.log(result)
return JSON.parse(result)
}
}

export default Fixture

// const a = [
// {
// comment: '/**\r\n' +
// 'the constructor description\r\n' +
// '@class\r\n' +
// '@classdesc a class with all of the things\r\n' +
// '@param {object} - an input\r\n' +
// '@param [options] {object} - optional shit\r\n' +
// '@author 75lb <[email protected]>\r\n' +
// '@deprecated\r\n' +
// '@since v0.10.28\r\n' +
// '@extends {Number}\r\n' +
// '@example\r\n' +
// '```js\r\n' +
// 'var yeah = new Everything(true)\r\n' +
// '```\r\n' +
// '*/',
// meta: {
// filename: '0-src.js',
// lineno: 16,
// columnno: 0,
// path: 'D:\\a\\jsdoc-api\\jsdoc-api\\test\\fixture\\class-all',
// },
// description: 'the constructor description',
// kind: 'class',
// classdesc: 'a class with all of the things',
// author: [ '75lb <[email protected]>' ],
// deprecated: true,
// since: 'v0.10.28',
// augments: [ 'Number' ],
// examples: [ '```js\r\nvar yeah = new Everything(true)\r\n```' ],
// name: 'All',
// longname: 'All',
// scope: 'global'
// },
// {
// comment: '/**\r\n' +
// ' the ingredients on top\r\n' +
// ' @default\r\n' +
// ' @type {string}\r\n' +
// ' @since v1.0.0\r\n' +
// ' */',
// meta: {
// filename: '0-src.js',
// lineno: 44,
// columnno: 0,
// path: 'D:\\a\\jsdoc-api\\jsdoc-api\\test\\fixture\\class-all',
// },
// description: 'This function has all tags set',
// deprecated: true,
// author: [ 'Lloyd <[email protected]>' ],
// since: 'v0.10.28',
// examples: [ '```js\r\nall.allTogether(true)\r\n```' ],
// name: 'allThings',
// longname: 'All#allThings',
// kind: 'function',
// memberof: 'All',
// scope: 'instance'
// },
// {
// comment: '/**\r\n a rarseclart inner\r\n */',
// meta: {
// filename: '0-src.js',
// lineno: 48,
// columnno: 6,
// path: 'D:\\a\\jsdoc-api\\jsdoc-api\\test\\fixture\\class-all',
// },
// description: 'a rarseclart inner',
// name: 'some',
// longname: 'All#allThings~some',
// kind: 'member',
// memberof: 'All#allThings',
// scope: 'inner',
// params: []
// },
// {
// kind: 'package',
// longname: 'package:undefined',
// files: [
// 'D:\\a\\jsdoc-api\\jsdoc-api\\test\\fixture\\class-all\\0-src.js'
// ]
// }
// ]

// const result = Fixture.normaliseNewLines(a)
// // console.log(result)

0 comments on commit 2ff8703

Please sign in to comment.