Skip to content

Commit

Permalink
Update snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jun 6, 2022
1 parent a947ebf commit f143571
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
29 changes: 29 additions & 0 deletions products/jbrowse-img/src/index.testmod.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,35 @@ test(
timeout,
)

test(
'renders volvox with variety of args (noRasterize)',
async () => {
const fp = f => require.resolve('../data/volvox/' + f)
console.error = jest.fn()
const result = await renderRegion({
fasta: fp('volvox.fa'),
trackList: [
['bam', [fp('volvox-sorted.bam')]],
['cram', [fp('volvox-sorted.cram')]],
['bigwig', [fp('volvox-sorted.bam.coverage.bw')]],
['vcfgz', [fp('volvox.filtered.vcf.gz')]],
['gffgz', [fp('volvox.sort.gff3.gz')]],
['bigbed', [fp('volvox.bb')]],
['bedgz', [fp('volvox-bed12.bed.gz')]],
],
loc: 'ctgA:1000-2000',
noRasterize: true,
})
// can't do a snapshot test here, slightly inconsistent results(?)
fs.writeFileSync(
require.resolve('../test/svg_from_volvox_fasta_and_bam_norasterize.svg'),
result,
)
expect(result).toBeTruthy()
},
timeout,
)

// commented out for using remote files currently
xtest(
'configtracks arg with urls',
Expand Down
2 changes: 1 addition & 1 deletion products/jbrowse-img/test/svg_configtracks_local.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f143571

Please sign in to comment.