mirror of
https://github.com/molstar/molstar.git
synced 2026-06-04 13:30:24 +08:00
lint fixes
This commit is contained in:
@@ -5,6 +5,7 @@ Note that since we don't clearly distinguish between a public and private interf
|
||||
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Add a uniform color theme for NtC tube that still paints residue and segment dividers in a different color
|
||||
|
||||
## [v3.34.0] - 2023-04-16
|
||||
|
||||
@@ -12,18 +12,18 @@ describe('getFileNameInfo', () => {
|
||||
});
|
||||
|
||||
it('handles url', () => {
|
||||
expect(getFileNameInfo('https://models.rcsb.org/4KTC.bcif')).toEqual({ path: 'models.rcsb.org/4KTC.bcif', name: '4KTC.bcif', ext: 'bcif', base: '4KTC', dir: 'models.rcsb.org/', protocol: 'https', query: '' })
|
||||
expect(getFileNameInfo('https://models.rcsb.org/4KTC.bcif')).toEqual({ path: 'models.rcsb.org/4KTC.bcif', name: '4KTC.bcif', ext: 'bcif', base: '4KTC', dir: 'models.rcsb.org/', protocol: 'https', query: '' });
|
||||
});
|
||||
|
||||
it('handles compressed url', () => {
|
||||
expect(getFileNameInfo('https://files.rcsb.org/download/7QPD.cif.gz?foo=bar')).toEqual({ path: 'files.rcsb.org/download/7QPD.cif.gz', name: '7QPD.cif.gz', ext: 'cif', base: '7QPD', dir: 'files.rcsb.org/download/', protocol: 'https', query: '?foo=bar' })
|
||||
expect(getFileNameInfo('https://files.rcsb.org/download/7QPD.cif.gz?foo=bar')).toEqual({ path: 'files.rcsb.org/download/7QPD.cif.gz', name: '7QPD.cif.gz', ext: 'cif', base: '7QPD', dir: 'files.rcsb.org/download/', protocol: 'https', query: '?foo=bar' });
|
||||
});
|
||||
|
||||
it('handles local path', () => {
|
||||
expect(getFileNameInfo('/usr/local/data/structure.pdb')).toEqual({ path: '/usr/local/data/structure.pdb', name: 'structure.pdb', ext: 'pdb', base: 'structure', dir: '/usr/local/data/', protocol: '', query: '' })
|
||||
expect(getFileNameInfo('/usr/local/data/structure.pdb')).toEqual({ path: '/usr/local/data/structure.pdb', name: 'structure.pdb', ext: 'pdb', base: 'structure', dir: '/usr/local/data/', protocol: '', query: '' });
|
||||
});
|
||||
|
||||
it('handles local path with protocol', () => {
|
||||
expect(getFileNameInfo('file:///usr/local/data/structure.pdb')).toEqual({ path: '/usr/local/data/structure.pdb', name: 'structure.pdb', ext: 'pdb', base: 'structure', dir: '/usr/local/data/', protocol: 'file', query: '' })
|
||||
expect(getFileNameInfo('file:///usr/local/data/structure.pdb')).toEqual({ path: '/usr/local/data/structure.pdb', name: 'structure.pdb', ext: 'pdb', base: 'structure', dir: '/usr/local/data/', protocol: 'file', query: '' });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user