Skip to content

Commit

Permalink
Use util.inspect().
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuratak committed Oct 1, 2023
1 parent 630811b commit 17bda6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 38 deletions.
12 changes: 5 additions & 7 deletions test/unittests/components/locatorlib/synctex.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import * as assert from 'assert'
import * as path from 'path'

import {getFixtureDir, runUnitTestWithFixture} from '../../../utils/ciutils'
import {FakeLogger} from '../../../utils/fakecomponents'

import {SyncTexJs} from '../../../../src/components/locatorlib/synctex'
import {decycle} from '../../../utils/decycle'
import { getFixtureDir, runUnitTestWithFixture } from '../../../utils/ciutils'
import { FakeLogger } from '../../../utils/fakecomponents'
import { SyncTexJs } from '../../../../src/components/locatorlib/synctex'
import { inspect } from 'util'


suite('unit test suite', () => {
Expand All @@ -21,7 +19,7 @@ suite('unit test suite', () => {
}
const synctexjs = new SyncTexJs(fakeExtension)
const ret = synctexjs.parseSyncTexForPdf(pdfFilePath)
const output = JSON.stringify(decycle(ret), null, ' ')
const output = inspect(ret, {showHidden: true})
// console.log(output)
assert.ok(output)
})
Expand Down
31 changes: 0 additions & 31 deletions test/utils/decycle.ts

This file was deleted.

0 comments on commit 17bda6b

Please sign in to comment.