diff options
Diffstat (limited to 'spec/frontend/jobs/store/utils_spec.js')
-rw-r--r-- | spec/frontend/jobs/store/utils_spec.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/frontend/jobs/store/utils_spec.js b/spec/frontend/jobs/store/utils_spec.js index 9458c2184f5..37a6722c555 100644 --- a/spec/frontend/jobs/store/utils_spec.js +++ b/spec/frontend/jobs/store/utils_spec.js @@ -43,6 +43,14 @@ describe('Jobs Store Utils', () => { expect(parsedHeaderLine.isClosed).toBe(true); }); + + it('expands all pre-closed sections if hash is present', () => { + const headerLine = { content: [{ text: 'foo' }], section_options: { collapsed: 'true' } }; + + const parsedHeaderLine = parseHeaderLine(headerLine, 2, '#L33'); + + expect(parsedHeaderLine.isClosed).toBe(false); + }); }); describe('parseLine', () => { |