fix lint issues

This commit is contained in:
Kate Higa
2022-04-08 13:24:33 -07:00
parent 6b4eaa185e
commit 6a57c99335
2 changed files with 6 additions and 7 deletions

View File

@@ -31,13 +31,12 @@ describe('when using the journeyDb', function () {
journeyDb.addTask('test2', '1: id2'); journeyDb.addTask('test2', '1: id2');
journeyDb.clear(); journeyDb.clear();
}); });
it.each` it.each`
fn | expected fn | expected
${'getTasks'} | ${[]} ${'getTasks'} | ${[]}
${'getTitle'} | ${''} ${'getTitle'} | ${''}
${'getAccDescription'} | ${''} ${'getAccDescription'} | ${''}
${'getSections'} | ${[]} ${'getSections'} | ${[]}
`('should clear $fn', ({ fn, expected }) => { `('should clear $fn', ({ fn, expected }) => {
expect(journeyDb[fn]()).toEqual(expected); expect(journeyDb[fn]()).toEqual(expected);
}); });

View File

@@ -22,7 +22,7 @@ describe('when parsing a journey diagram it', function () {
it('it should handle an accDescription', function () { it('it should handle an accDescription', function () {
const str = const str =
'journey\n' + 'journey\n' +
'accDescription A user journey for family shopping\n'+ 'accDescription A user journey for family shopping\n' +
'title Adding journey diagram functionality to mermaid\n' + 'title Adding journey diagram functionality to mermaid\n' +
'section Order from website'; 'section Order from website';