Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -3,9 +3,14 @@ import { serverSection, serverSectionAnchor } from '../../src/lib/server-section
|
||||
|
||||
describe('server detail bookmarks', () => {
|
||||
it.each([
|
||||
['scoreboard', 'live', null], ['chat', 'live', 'chat'], ['matches', 'matches', null],
|
||||
['config', 'configuration', null], ['inventory', 'configuration', 'inventory'],
|
||||
['logs', 'diagnostics', 'logs'], ['diagnostics', 'diagnostics', null], ['history', 'history', null]
|
||||
['scoreboard', 'live', null],
|
||||
['chat', 'live', 'chat'],
|
||||
['matches', 'matches', null],
|
||||
['config', 'configuration', null],
|
||||
['inventory', 'configuration', 'inventory'],
|
||||
['logs', 'diagnostics', 'logs'],
|
||||
['diagnostics', 'diagnostics', null],
|
||||
['history', 'history', null]
|
||||
])('preserves the destination of tab=%s', (tab, section, anchor) => {
|
||||
expect(serverSection(tab)).toBe(section);
|
||||
expect(serverSectionAnchor(tab)).toBe(anchor);
|
||||
|
||||
Reference in New Issue
Block a user